X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fscript%2Flua_api%2Fl_areastore.cpp;h=908c766b065ca20a7dda1d354ce39926790c2662;hb=ace3c76112a839aaad34f4343cd924412310bbd3;hp=d53d74aa829f798083f6444456fc7f795422014d;hpb=eef62c82a2e58700fc1216b0b8c03e421bc77995;p=dragonfireclient.git diff --git a/src/script/lua_api/l_areastore.cpp b/src/script/lua_api/l_areastore.cpp index d53d74aa8..908c766b0 100644 --- a/src/script/lua_api/l_areastore.cpp +++ b/src/script/lua_api/l_areastore.cpp @@ -185,6 +185,7 @@ int LuaAreaStore::l_insert_area(lua_State *L) if (lua_isnumber(L, 5)) a.id = lua_tonumber(L, 5); + // Insert & assign a new ID if necessary if (!ast->insertArea(&a)) return 0;