diff options
| author | cracker64 <cracker642@gmail.com> | 2013-05-09 19:51:01 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2013-05-09 19:51:01 (GMT) |
| commit | 4c5667fbc66a99b6f120fa990b83c71e80770d32 (patch) | |
| tree | eced14301e917bc49b9ac2d4b7c330f8aa1d4e77 /src/cat | |
| parent | 67e1213905edbd248ef4d434c3e5e53c151828a7 (diff) | |
| download | powder-4c5667fbc66a99b6f120fa990b83c71e80770d32.zip powder-4c5667fbc66a99b6f120fa990b83c71e80770d32.tar.gz | |
Fix tpt.message_box correctly to only accept true/false third arg.
Diffstat (limited to 'src/cat')
| -rw-r--r-- | src/cat/LegacyLuaAPI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index cb6fd9a..3557c6f 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 = luaL_optint(l, 3, 0); + int large = lua_isboolean(l, 3)?lua_toboolean(l, 3):0; new InformationMessage(title, message, large); return 0; } |
