forked from github/server
coverity scan CID 22448: logically dead code
This commit is contained in:
parent
f72314e915
commit
e60b739ea4
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ static int tolua_region_create(lua_State * L)
|
||||||
assert(!pnormalize(&x, &y, pl));
|
assert(!pnormalize(&x, &y, pl));
|
||||||
r = result = findregion(x, y);
|
r = result = findregion(x, y);
|
||||||
|
|
||||||
if (terrain == NULL && r != NULL && r->units != NULL) {
|
if (r != NULL && r->units != NULL) {
|
||||||
/* TODO: error message */
|
/* TODO: error message */
|
||||||
result = NULL;
|
result = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue