summaryrefslogtreecommitdiff
path: root/src/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting')
-rw-r--r--src/scripting/lua.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp
index ca4a3272..be722569 100644
--- a/src/scripting/lua.cpp
+++ b/src/scripting/lua.cpp
@@ -202,14 +202,13 @@ static int npc_message(lua_State *s)
{
NPC *p = checkNPC(s, 1);
Character *q = checkCharacter(s, 2);
- size_t l;
- const char *m = luaL_checklstring(s, 3, &l);
+ const char *m = luaL_checkstring(s, 3);
Script::Thread *thread = checkCurrentThread(s);
MessageOut msg(GPMSG_NPC_MESSAGE);
msg.writeInt16(p->getPublicID());
- msg.writeString(m, l);
+ msg.writeString(m);
gameHandler->sendTo(q, msg);
thread->mState = Script::ThreadPaused;