Update questmgr.cpp

This commit is contained in:
Akkadius
2023-10-29 22:45:19 -05:00
parent 06461944df
commit 8b132f6abc
+6 -6
View File
@@ -361,9 +361,9 @@ void QuestManager::enable_spawn2(uint32 spawn2_id)
{ {
database.UpdateSpawn2Status(spawn2_id, 1, zone->GetInstanceID()); database.UpdateSpawn2Status(spawn2_id, 1, zone->GetInstanceID());
auto pack = new ServerPacket(ServerOP_SpawnStatusChange, sizeof(ServerSpawnStatusChange_Struct)); auto pack = new ServerPacket(ServerOP_SpawnStatusChange, sizeof(ServerSpawnStatusChange_Struct));
ServerSpawnStatusChange_Struct* ssc = (ServerSpawnStatusChange_Struct*) pack->pBuffer; auto *ssc = (ServerSpawnStatusChange_Struct *) pack->pBuffer;
ssc->id = spawn2_id; ssc->id = spawn2_id;
ssc->new_status = 1; ssc->new_status = true;
worldserver.SendPacket(pack); worldserver.SendPacket(pack);
safe_delete(pack); safe_delete(pack);
} }
@@ -372,9 +372,9 @@ void QuestManager::disable_spawn2(uint32 spawn2_id)
{ {
database.UpdateSpawn2Status(spawn2_id, 0, zone->GetInstanceID()); database.UpdateSpawn2Status(spawn2_id, 0, zone->GetInstanceID());
auto pack = new ServerPacket(ServerOP_SpawnStatusChange, sizeof(ServerSpawnStatusChange_Struct)); auto pack = new ServerPacket(ServerOP_SpawnStatusChange, sizeof(ServerSpawnStatusChange_Struct));
ServerSpawnStatusChange_Struct* ssc = (ServerSpawnStatusChange_Struct*) pack->pBuffer; auto *ssc = (ServerSpawnStatusChange_Struct *) pack->pBuffer;
ssc->id = spawn2_id; ssc->id = spawn2_id;
ssc->new_status = 0; ssc->new_status = false;
worldserver.SendPacket(pack); worldserver.SendPacket(pack);
safe_delete(pack); safe_delete(pack);
} }