Merge pull request #977 from Azaezel/alpha41/spawnSphereThisTracking

spawnsphere %this tracking
This commit is contained in:
Brian Roberts 2023-03-03 20:53:08 -06:00 committed by GitHub
commit eeab0c1e06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -377,8 +377,9 @@ bool SpawnSphere::onAdd()
SimObject* SpawnSphere::spawnObject(String additionalProps)
{
String command = String("%this = ") + getIdString() + ";" + mSpawnScript;
SimObject* spawnObject = Sim::spawnObject(mSpawnClass, mSpawnDataBlock, mSpawnName,
mSpawnProperties + " " + additionalProps, mSpawnScript);
mSpawnProperties + " " + additionalProps, command);
// If we have a spawnObject add it to the MissionCleanup group
if (spawnObject)