Skip to content

Commit

Permalink
Fix miniconsole error message (Mudlet#5122)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 authored Apr 11, 2021
1 parent 6e82d97 commit 7467328
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 @@ -3189,7 +3189,7 @@ int TLuaInterpreter::createMiniConsole(lua_State* L)
windowName.clear();
}

if (!lua_isnumber(L, 2)) {
if (!lua_isnumber(L, 2) && lua_gettop(L) >= 2) {
name = getVerifiedString(L, __func__, 2, "miniconsole name");
} else {
name = windowName;
Expand Down

0 comments on commit 7467328

Please sign in to comment.