Fixed TeamWin with the axis team

This commit is contained in:
smallmodel committed 2023-08-18 15:13:47 +02:00
1 parent f20b47ebc0
commit f8d5a5ecd2
1 file changed
+1 -1
+1 -1
View File
@@ -4098,7 +4098,7 @@ void ScriptThread::EventTeamWin(Event *ev)
team = ev->GetConstString(1);
if (team == STRING_ALLIES) {
teamnum = TEAM_ALLIES;
} else if (team == TEAM_AXIS) {
} else if (team == STRING_AXIS) {
teamnum = TEAM_AXIS;
} else {
throw ScriptException("'teamwin' must be called with 'axis' or 'allies' as its argument");