Skip to content

Commit

Permalink
Attempt to fix mingw compilation with std::variant
Browse files Browse the repository at this point in the history
For some reason, it had no issue storing a value of a long long int in the variant with boost::variant.
  • Loading branch information
Vultraz committed Jan 19, 2021
1 parent 3d8e375 commit 8f510dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/lua_unit.cpp
Expand Up @@ -469,7 +469,7 @@ static int impl_unit_set(lua_State *L)

if(strcmp(m, "upkeep") == 0) {
if(lua_isnumber(L, 3)) {
u.set_upkeep(luaL_checkinteger(L, 3));
u.set_upkeep(static_cast<int>(luaL_checkinteger(L, 3)));
return 0;
}
const char* v = luaL_checkstring(L, 3);
Expand Down

0 comments on commit 8f510dc

Please sign in to comment.