瀏覽代碼

Fix chests not opening because they were set to alive

Emagi 1 年之前
父節點
當前提交
b5aec63d57
共有 1 個文件被更改,包括 1 次插入0 次删除
  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