瀏覽代碼

avoid possible ptr issue

Emagi 6 月之前
父節點
當前提交
d39d441297
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      EQ2/source/WorldServer/client.cpp

+ 3 - 3
EQ2/source/WorldServer/client.cpp

@@ -2944,9 +2944,9 @@ void Client::HandleLootItemRequestPacket(EQApplicationPacket* app) {
 					CloseLoot(loot_id);
 				}
 				else {
-					vector<Item*>* items = player->GetPendingLootItems(loot_id);
-					SendLootResponsePacket(spawn->GetLootCoins(), items, spawn, true);
-					safe_delete(items);
+					vector<Item*>* items2 = player->GetPendingLootItems(loot_id);
+					SendLootResponsePacket(spawn->GetLootCoins(), items2, spawn, true);
+					safe_delete(items2);
 				}
 				safe_delete(items);
 				safe_delete(packet);