Fixed TeamWin with the axis team

This commit is contained in:
smallmodel 2023-08-18 15:13:47 +02:00
parent f20b47ebc0
commit f8d5a5ecd2
No known key found for this signature in database
GPG key ID: A96F163ED4891440

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