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'
master
est31 2015-09-03 05:58:29 +02:00
parent d493855481
commit 2035bfc3a6
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ static void push_area(lua_State *L, const Area *a,
{
if (!include_borders && !include_data) {
lua_pushboolean(L, true);
return;
}
lua_newtable(L);
if (include_borders) {