Bläddra i källkod

Fix chests not opening because they were set to alive

Emagi 1 år sedan
förälder
incheckning
b5aec63d57
1 ändrade filer med 1 tillägg och 0 borttagningar
  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