Fix crashing when transports are loaded via lua
This commit is contained in:
@@ -1221,7 +1221,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
Activity ICreationActivity.GetCreationActivity()
|
||||
{
|
||||
return new AssociateWithAirfieldActivity(self, creationActivityDelay, creationRallyPoint);
|
||||
if (creationRallyPoint != null || creationActivityDelay > 0)
|
||||
return new AssociateWithAirfieldActivity(self, creationActivityDelay, creationRallyPoint);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
sealed class AssociateWithAirfieldActivity : Activity
|
||||
|
||||
Reference in New Issue
Block a user