From 71d4f331b5c00cd2cb8f8957b953c693bc8a7956 Mon Sep 17 00:00:00 2001 From: Gent S Date: Sun, 22 Nov 2020 16:46:09 -0500 Subject: [PATCH] Fix egg type warning message --- src/NPCManager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/NPCManager.cpp b/src/NPCManager.cpp index 06850b9..4a11783 100644 --- a/src/NPCManager.cpp +++ b/src/NPCManager.cpp @@ -769,11 +769,10 @@ void NPCManager::eggPickup(CNSocket* sock, CNPacketData* data) { int typeId = egg->appearanceData.iNPCType; if (EggTypes.find(typeId) == EggTypes.end()) { - if (egg->npcClass != NPCClass::NPC_EGG) { - std::cout << "[WARN] Egg Type " << typeId << " not found!" << std::endl; - return; - } + std::cout << "[WARN] Egg Type " << typeId << " not found!" << std::endl; + return; } + EggType* type = &EggTypes[typeId]; // buff the player