From aa04597c5f8bb806996d604699fc8ebff6d53bdd Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 6 Apr 2013 21:36:50 +0200 Subject: Converted the Character class into a component A CharacterData was created as a proxy class in order to allow using the old serialization method. --- src/scripting/luautil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scripting/luautil.cpp') diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp index d082cbe..f835be8 100644 --- a/src/scripting/luautil.cpp +++ b/src/scripting/luautil.cpp @@ -128,14 +128,14 @@ Being *getBeing(lua_State *s, int p) return static_cast(lua_touserdata(s, p)); } -Character *getCharacter(lua_State *s, int p) +Being *getCharacter(lua_State *s, int p) { if (!lua_islightuserdata(s, p)) return 0; Entity *t = static_cast(lua_touserdata(s, p)); if (t->getType() != OBJECT_CHARACTER) return 0; - return static_cast(t); + return static_cast(t); } ItemClass *getItemClass(lua_State *s, int p) @@ -206,9 +206,9 @@ Being *checkBeing(lua_State *s, int p) return being; } -Character *checkCharacter(lua_State *s, int p) +Being *checkCharacter(lua_State *s, int p) { - Character *character = getCharacter(s, p); + Being *character = getCharacter(s, p); luaL_argcheck(s, character, p, "character expected"); return character; } -- cgit