Skip to content

Commit

Permalink
Fix a bug with in with() statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrapivin committed Apr 23, 2021
1 parent 6716da7 commit 77add02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libLassebq/GMLua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ int lua_GMLua_with(lua_State* _pL)
}

// all?
if (lua_isinteger(_pL, 1))
if (lua_isinteger(_pL, 1) || lua_isnumber(_pL, 1))
{
lua_Integer wtf = lua_tointeger(_pL, 1);
std::cout << __FUNCTION__ << " wtf=" << wtf << std::endl;
Expand Down

0 comments on commit 77add02

Please sign in to comment.