PDA

View Full Version : Bandolier fix


realityincarnate
03-08-2009, 12:05 AM
This is a really minor issue, but I noticed that when using bandolier to switch between weapons and bard instruments, the instrument bonuses were not being calculated after the switch. I assume (but haven't noticed) that this is true of other bonuses as well. Adding a CalcBonuses() function call to the end seems to have resolved the issue.


Index: inventory.cpp
================================================== =================
--- inventory.cpp (revision 373)
+++ inventory.cpp (working copy)
@@ -1464,6 +1464,8 @@
}
}
}
+ // finally, recalculate any stat bonuses from the item change
+ CalcBonuses();
}

bool Client::MoveItemToInventory(ItemInst *ItemToReturn, bool UpdateClient) {