Fix egg type warning message

This commit is contained in:
Gent S 2020-11-22 16:46:09 -05:00
parent 665f28313a
commit 71d4f331b5

View File

@ -769,11 +769,10 @@ void NPCManager::eggPickup(CNSocket* sock, CNPacketData* data) {
int typeId = egg->appearanceData.iNPCType; int typeId = egg->appearanceData.iNPCType;
if (EggTypes.find(typeId) == EggTypes.end()) { if (EggTypes.find(typeId) == EggTypes.end()) {
if (egg->npcClass != NPCClass::NPC_EGG) { std::cout << "[WARN] Egg Type " << typeId << " not found!" << std::endl;
std::cout << "[WARN] Egg Type " << typeId << " not found!" << std::endl; return;
return;
}
} }
EggType* type = &EggTypes[typeId]; EggType* type = &EggTypes[typeId];
// buff the player // buff the player