Skip to content

Commit

Permalink
Fix crash on invalid ConditionalWML tag in some contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Jul 30, 2016
1 parent 1e93e73 commit 4a668e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/scripting/game_lua_kernel.cpp
Expand Up @@ -5228,10 +5228,8 @@ bool game_lua_kernel::run_wml_conditional(std::string const &cmd, vconfig const


if (!luaW_getglobal(L, "wesnoth", "wml_conditionals", cmd)) {
std::string err_msg = "unknown conditional wml: [";
err_msg += cmd;
err_msg += "]";
luaL_argerror(L, 1, err_msg.c_str());
lg::wml_error() << "unknown conditional wml: [" << cmd << "]\n";
return true;
}

luaW_pushvconfig(L, cfg);
Expand Down

0 comments on commit 4a668e0

Please sign in to comment.