mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
Fix egg type warning message
This commit is contained in:
parent
665f28313a
commit
71d4f331b5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user