mirror of
https://github.com/minetest/minetest.git
synced 2025-02-19 19:33:44 +01:00
Areastore: fix "attempt to index a number value"
Before, calling get_areas_in_area for an areastore with both include_borders and include_data would result in a lua error, if there was at least one area as result: attempt to index a number value in function 'get_areas_in_area'
This commit is contained in:
@ -45,6 +45,7 @@ static void push_area(lua_State *L, const Area *a,
|
|||||||
{
|
{
|
||||||
if (!include_borders && !include_data) {
|
if (!include_borders && !include_data) {
|
||||||
lua_pushboolean(L, true);
|
lua_pushboolean(L, true);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
lua_newtable(L);
|
lua_newtable(L);
|
||||||
if (include_borders) {
|
if (include_borders) {
|
||||||
|
Reference in New Issue
Block a user