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:
parent
c0cd7aa351
commit
403dada85a
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue