diff --git a/dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp b/dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp index abe9c350..b99b99c4 100644 --- a/dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp +++ b/dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp @@ -271,9 +271,11 @@ void SGCannon::DoSpawnTimerFunc(Entity* self, const std::string& name) { new LDFData(u"groupID", u"SGEnemy"), new LDFData(u"wave", self->GetVar(ThisWaveVariable)), }; - auto* enemy = Game::entityManager->CreateEntity(info, nullptr, self); + if (info.lot == 2565) { + LOG("id is %llu", enemy->GetObjectID()); + } auto* movementAI = enemy->AddComponent(MovementAIInfo{}); auto* simplePhysicsComponent = enemy->GetComponent(); if (simplePhysicsComponent) { @@ -612,7 +614,7 @@ void SGCannon::StopGame(Entity* self, bool cancel) { // Destroy all spawners for (auto* entity : Game::entityManager->GetEntitiesInGroup("SGEnemy")) { - entity->Kill(); + entity->Smash(LWOOBJID_EMPTY, eKillType::SILENT); } ResetVars(self);