diff options
Diffstat (limited to 'src/scripting/luautil.cpp')
-rw-r--r-- | src/scripting/luautil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp index feed7568..fd83b58b 100644 --- a/src/scripting/luautil.cpp +++ b/src/scripting/luautil.cpp @@ -144,7 +144,7 @@ Character *getCharacter(lua_State *s, int p) { if (!lua_islightuserdata(s, p)) return 0; - Thing *t = static_cast<Thing *>(lua_touserdata(s, p)); + Entity *t = static_cast<Entity *>(lua_touserdata(s, p)); if (t->getType() != OBJECT_CHARACTER) return 0; return static_cast<Character *>(t); @@ -174,7 +174,7 @@ Monster *getMonster(lua_State *s, int p) { if (!lua_islightuserdata(s, p)) return 0; - Thing *t = static_cast<Thing *>(lua_touserdata(s, p)); + Entity *t = static_cast<Entity *>(lua_touserdata(s, p)); if (t->getType() != OBJECT_MONSTER) return 0; return static_cast<Monster *>(t); @@ -204,7 +204,7 @@ NPC *getNPC(lua_State *s, int p) { if (!lua_islightuserdata(s, p)) return 0; - Thing *t = static_cast<Thing *>(lua_touserdata(s, p)); + Entity *t = static_cast<Entity *>(lua_touserdata(s, p)); if (t->getType() != OBJECT_NPC) return 0; return static_cast<NPC *>(t); @@ -309,7 +309,7 @@ void push(lua_State *s, const std::string &val) lua_pushstring(s, val.c_str()); } -void push(lua_State *s, Thing *val) +void push(lua_State *s, Entity *val) { lua_pushlightuserdata(s, val); } |