Skip to content

Commit

Permalink
Fix lua reference initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Nov 24, 2018
1 parent dbaa975 commit b938222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LuaReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REGISTER_CLASS_TRAITS(LuaReference, new LuaReference(*pCopy))

LuaReference::LuaReference()
{
m_iReference = LUA_REFNIL;
m_iReference = LUA_NOREF;
}

LuaReference::~LuaReference()
Expand Down
2 changes: 1 addition & 1 deletion src/LuaReference.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LuaReference

// Convenience constructor.
LuaReference(Lua* L)
: m_iReference(LUA_REFNIL)
: m_iReference(LUA_NOREF)
{
SetFromStack(L);
}
Expand Down

0 comments on commit b938222

Please sign in to comment.