mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Bug Fix] Fix NPC Item Stat Bonuses (#3444)
* [Bug Fix] Fix NPC Item Stat Bonuses # Notes - Due to https://github.com/EQEmu/Server/pull/3136 NPCs/Mercs were not receiving stat bonuses from their items, this fixes that. * Update npc.h * Changes. * Cleanup * Cleanup * Update loottables.cpp * Update npc.cpp * Update loottables.cpp
This commit is contained in:
+2
-1
@@ -146,7 +146,8 @@ void Mob::CalcItemBonuses(StatBonuses* b) {
|
||||
int16 i;
|
||||
|
||||
for (i = EQ::invslot::BONUS_BEGIN; i <= EQ::invslot::BONUS_SKILL_END; i++) {
|
||||
const EQ::ItemInstance* inst = GetInv().GetItem(i);
|
||||
const auto* inst = GetInv().GetItem(i);
|
||||
|
||||
if (!inst) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user