Fixed a typo breaking [switch].

This commit is contained in:
Lari Nieminen 2009-05-12 10:42:40 +00:00
parent 4ca0e29325
commit 5e2dcecef6

View File

@ -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);