mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 05:45:07 +00:00
Fixed a typo breaking [switch].
This commit is contained in:
parent
4ca0e29325
commit
5e2dcecef6
@ -2931,7 +2931,7 @@ WML_HANDLER_FUNCTION(switch, event_info, cfg)
|
||||
|
||||
bool not_found = true;
|
||||
// execute all cases where the value matches
|
||||
foreach (const vconfig &c, cfg.get_children("cases")) {
|
||||
foreach (const vconfig &c, cfg.get_children("case")) {
|
||||
if (var == c["value"]) {
|
||||
not_found = false;
|
||||
handle_event_commands(event_info, c);
|
||||
|
Loading…
x
Reference in New Issue
Block a user