ai_helper checked actions: move error string into call to error()
… rather than making it a separate message.
This commit is contained in:
parent
d375321e64
commit
bd1b45e814
1 changed files with 1 additions and 2 deletions
|
@ -169,8 +169,7 @@ end
|
|||
|
||||
function ai_helper.checked_action_error(action, error_code)
|
||||
if wesnoth.game_config.debug then
|
||||
wesnoth.message('Lua AI error', action .. ' could not be executed. Error code: ' .. error_code)
|
||||
error()
|
||||
error(action .. ' could not be executed. Error code: ' .. error_code)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue