diff --git a/src/game_events.cpp b/src/game_events.cpp index 95b4720e715..85882f5104d 100644 --- a/src/game_events.cpp +++ b/src/game_events.cpp @@ -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);