mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-23 03:40:05 +00:00
Fix failure to summon the highest NPC_ID
And update tdata.
This commit is contained in:
parent
b04c66dea7
commit
5fdef50f0f
@ -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
2
tdata
@ -1 +1 @@
|
||||
Subproject commit 5316c7a615502a49a890cecdc0e2dfd035b03a29
|
||||
Subproject commit 01066697e49b7c8c323347559d65ca75527d03e3
|
Loading…
Reference in New Issue
Block a user