vcmi: modernize lua

This commit is contained in:
Konstantin committed 2023-02-08 13:51:22 +03:00
1 parent fb38050f9b
commit 976c5e7bd4
11 files changed
+43 -35

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ static void publishMap(lua_State * L, const T & map)
for(auto & p : map)
{
const std::string & name = p.first;
int32_t id = static_cast<int32_t>(p.second);
auto id = static_cast<int32_t>(p.second);
lua_pushstring(L, name.c_str());
lua_pushinteger(L, id);