1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Return nil on empty get_area() (#4508)

This commit is contained in:
James Stevenson 2016-09-09 11:47:13 -04:00 committed by Zeno-
parent c0cd7aa351
commit 403dada85a
2 changed files with 4 additions and 0 deletions

View file

@ -111,6 +111,9 @@ int LuaAreaStore::l_get_area(lua_State *L)
const Area *res;
res = ast->getArea(id);
if (!res)
return 0;
push_area(L, res, include_borders, include_data);
return 1;