Thread: Bandolier fix
View Single Post
  #1  
Old 03-08-2009, 12:05 AM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default 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) {
Reply With Quote