just one to_boolean works... any number is true.

This commit is contained in:
cracker64 2013-05-09 16:03:14 -04:00
parent 4c5667fbc6
commit d1c8978a34

View File

@ -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;
}