From d1c8978a34906c1adb6bdc3fbae7f12c06aa8324 Mon Sep 17 00:00:00 2001 From: cracker64 Date: Thu, 9 May 2013 16:03:14 -0400 Subject: [PATCH] just one to_boolean works... any number is true. --- src/cat/LegacyLuaAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index 3557c6f4a..9c739367d 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -1739,7 +1739,7 @@ int luatpt_message_box(lua_State* l) { std::string title = std::string(luaL_optstring(l, 1, "Title")); std::string message = std::string(luaL_optstring(l, 2, "Message")); - int large = lua_isboolean(l, 3)?lua_toboolean(l, 3):0; + int large = lua_toboolean(l, 3); new InformationMessage(title, message, large); return 0; }