Ver código fonte

Fix chests not opening because they were set to alive

Emagi 1 ano atrás
pai
commit
b5aec63d57
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      EQ2/source/WorldServer/Items/Loot.cpp

+ 1 - 0
EQ2/source/WorldServer/Items/Loot.cpp

@@ -52,6 +52,7 @@ NPC* Entity::DropChest() {
 	chest->SetTargetable(1);
 	chest->SetLevel(GetLevel());
 	chest->SetChestDropTime();
+	chest->SetAlive(false);
 	// Set the brain to a blank brain so it does nothing
 	chest->SetBrain(new BlankBrain(chest));
 	// Set the x, y, z, heading, location (grid id) to that of the dead spawn