summaryrefslogtreecommitdiff
path: root/src/cat
diff options
context:
space:
mode:
authorcracker64 <cracker642@gmail.com>2013-05-09 20:03:14 (GMT)
committer cracker64 <cracker642@gmail.com>2013-05-09 20:03:14 (GMT)
commitd1c8978a34906c1adb6bdc3fbae7f12c06aa8324 (patch)
tree3b36301be743a5ab7bf315af88c0b1dc02f36cd9 /src/cat
parent4c5667fbc66a99b6f120fa990b83c71e80770d32 (diff)
downloadpowder-d1c8978a34906c1adb6bdc3fbae7f12c06aa8324.zip
powder-d1c8978a34906c1adb6bdc3fbae7f12c06aa8324.tar.gz
just one to_boolean works... any number is true.
Diffstat (limited to 'src/cat')
-rw-r--r--src/cat/LegacyLuaAPI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp
index 3557c6f..9c73936 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;
}