summaryrefslogtreecommitdiffstats
path: root/src/scripting/luautil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting/luautil.cpp')
-rw-r--r--src/scripting/luautil.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp
index e753e1b..3de23c7 100644
--- a/src/scripting/luautil.cpp
+++ b/src/scripting/luautil.cpp
@@ -247,7 +247,7 @@ int checkSkill(lua_State *s, int p)
return luaL_checkint(s, p);
int id = skillManager->getId(luaL_checkstring(s, p));
- luaL_argcheck(s, id != 0, p, "invalid special name");
+ luaL_argcheck(s, id != 0, p, "invalid skill name");
return id;
}
@@ -285,24 +285,3 @@ Script::Thread *checkCurrentThread(lua_State *s, Script *script /* = 0 */)
return thread;
}
-
-
-void push(lua_State *s, int val)
-{
- lua_pushinteger(s, val);
-}
-
-void push(lua_State *s, const std::string &val)
-{
- lua_pushstring(s, val.c_str());
-}
-
-void push(lua_State *s, Entity *val)
-{
- lua_pushlightuserdata(s, val);
-}
-
-void push(lua_State *s, double val)
-{
- lua_pushnumber(s, val);
-}