Skip to content

Commit

Permalink
BugFix: correct argument cock-up and get permTimer(...) working again (
Browse files Browse the repository at this point in the history
…Mudlet#2545)

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
  • Loading branch information
SlySven authored and vadi2 committed May 13, 2019
1 parent 53c4ee9 commit a894c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TLuaInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7174,7 +7174,7 @@ int TLuaInterpreter::permTimer(lua_State* L)
lua_pushfstring(L, "permTimer: bad argument #3 type (time in seconds as {maybe decimal} number expected, got %s!)", luaL_typename(L, 3));
return lua_error(L);
}
double time = lua_tonumber(L, 1);
double time = lua_tonumber(L, 3);

if (!lua_isstring(L, 4)) {
lua_pushfstring(L, "permTimer: bad argument #4 type (script as string expected, got %s!)", luaL_typename(L, 4));
Expand Down

0 comments on commit a894c43

Please sign in to comment.