Skip to content
Browse files

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'
  • Loading branch information
est31 committed Sep 3, 2015
1 parent d493855 commit 2035bfc3a64e7c0c82f0cb100cd7d4cc588d0203
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/script/lua_api/l_areastore.cpp
@@ -45,6 +45,7 @@ static void push_area(lua_State *L, const Area *a,
if (!include_borders && !include_data) {
lua_pushboolean(L, true);
if (include_borders) {

0 comments on commit 2035bfc

Please sign in to comment.
You can’t perform that action at this time.