From 5fdef50f0fb75ff604ac891cf5671bea759e1f2e Mon Sep 17 00:00:00 2001 From: dongresource Date: Wed, 3 Mar 2021 23:17:36 +0100 Subject: [PATCH] Fix failure to summon the highest NPC_ID And update tdata. --- src/NPCManager.cpp | 2 +- tdata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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