EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Bandolier fix (https://www.eqemulator.org/forums/showthread.php?t=27649)

realityincarnate 03-08-2009 12:05 AM

Bandolier fix
 
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.

Code:

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) {



All times are GMT -4. The time now is 08:34 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.