fix lua::getfield and events registering
This commit is contained in:
parent
51531e2621
commit
bb35fc665f
@ -455,7 +455,7 @@ namespace lua {
|
||||
|
||||
inline bool getfield(lua::State* L, const std::string& name, int idx = -1) {
|
||||
lua_getfield(L, idx, name.c_str());
|
||||
if (isnil(L, idx)) {
|
||||
if (isnoneornil(L, -1)) {
|
||||
pop(L);
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user