diff --git a/src/NPCManager.cpp b/src/NPCManager.cpp index 77a4328..7fb575b 100644 --- a/src/NPCManager.cpp +++ b/src/NPCManager.cpp @@ -504,7 +504,7 @@ void NPCManager::npcSummonHandler(CNSocket* sock, CNPacketData* data) { int limit = NPCData.back()["m_iNpcNumber"]; // permission & sanity check - if (plr->accountLevel > 30 || req->iNPCType >= limit || req->iNPCCnt > 100) + if (plr->accountLevel > 30 || req->iNPCType > limit || req->iNPCCnt > 100) return; for (int i = 0; i < req->iNPCCnt; i++) { diff --git a/tdata b/tdata index 5316c7a..0106669 160000 --- a/tdata +++ b/tdata @@ -1 +1 @@ -Subproject commit 5316c7a615502a49a890cecdc0e2dfd035b03a29 +Subproject commit 01066697e49b7c8c323347559d65ca75527d03e3