Fix failure to summon the highest NPC_ID

And update tdata.
This commit is contained in:
dongresource 2021-03-03 23:17:36 +01:00
parent b04c66dea7
commit 5fdef50f0f
2 changed files with 2 additions and 2 deletions

View File

@ -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++) {

2
tdata

@ -1 +1 @@
Subproject commit 5316c7a615502a49a890cecdc0e2dfd035b03a29
Subproject commit 01066697e49b7c8c323347559d65ca75527d03e3