Disabled [message]side_for= when user input is expected,
...since it causes OoS (out-of-turn query). (Fix for bug #17350.)
This commit is contained in:
parent
04d8217e71
commit
7ec935255f
1 changed files with 5 additions and 0 deletions
|
@ -2496,6 +2496,11 @@ WML_HANDLER_FUNCTION(message, event_info, cfg)
|
|||
std::string side_for_raw = cfg["side_for"];
|
||||
if (!side_for_raw.empty())
|
||||
{
|
||||
if (has_input) {
|
||||
lg::wml_error << "[message]side_for= can only be used for messages that don't query any user input.\n";
|
||||
return;
|
||||
}
|
||||
|
||||
bool side_for_show = false;
|
||||
|
||||
std::vector<std::string> side_for =
|
||||
|
|
Loading…
Add table
Reference in a new issue