mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 18:07:16 +00:00
Fix for potion belt name loading.
This commit is contained in:
1 parent
c0cbbf3a65
commit
aa021addc1
7 files changed
+36
-8
No files matched your search
@@ -48,6 +48,7 @@
|
||||
#include "../common/guilds.h"
|
||||
#include "../common/rulesys.h"
|
||||
#include "../common/spdat.h"
|
||||
#include "../common/data_verification.h"
|
||||
#include "petitions.h"
|
||||
#include "npc_ai.h"
|
||||
#include "../common/skills.h"
|
||||
@@ -10490,7 +10491,13 @@ void Client::Handle_OP_PotionBelt(const EQApplicationPacket *app)
|
||||
DumpPacket(app);
|
||||
return;
|
||||
}
|
||||
|
||||
MovePotionToBelt_Struct *mptbs = (MovePotionToBelt_Struct*)app->pBuffer;
|
||||
if(!EQEmu::ValueWithin(mptbs->SlotNumber, 0U, 3U)) {
|
||||
LogFile->write(EQEMuLog::Debug, "Client::Handle_OP_PotionBelt mptbs->SlotNumber out of range.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (mptbs->Action == 0) {
|
||||
const Item_Struct *BaseItem = database.GetItem(mptbs->ItemID);
|
||||
if (BaseItem) {
|
||||
|
||||
Reference in new issue
Block a user