coverity scan CID 22448: logically dead code

This commit is contained in:
Enno Rehling 2015-10-29 08:49:05 +01:00
parent f72314e915
commit e60b739ea4
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ static int tolua_region_create(lua_State * L)
assert(!pnormalize(&x, &y, pl));
r = result = findregion(x, y);
if (terrain == NULL && r != NULL && r->units != NULL) {
if (r != NULL && r->units != NULL) {
/* TODO: error message */
result = NULL;
}