We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab05ae5 commit af3c53eCopy full SHA for af3c53e
scripting/include/model_chooser/structs.inc
@@ -190,7 +190,10 @@ enum struct PlayerModel
190
int team = String_IsNumeric(this.team) ? StringToInt(this.team) : FindTeamByName(this.team);
191
if (team < 0 || team >= MAX_TEAMS)
192
{
193
- LogError("Invalid team \"%s\" specified for model \"%s\"", this.team, this.name);
+ if (GetTeamCount() > 1)
194
+ {
195
+ LogError("Invalid team \"%s\" specified for model \"%s\"", this.team, this.name);
196
+ }
197
team = 0;
198
}
199
return team;
0 commit comments