diff --git a/Tactical/Items.cpp b/Tactical/Items.cpp index c107d3522..30b0c4d22 100644 --- a/Tactical/Items.cpp +++ b/Tactical/Items.cpp @@ -10269,6 +10269,9 @@ INT32 GetObjectModifier( SOLDIERTYPE* pSoldier, OBJECTTYPE *pObj, UINT8 ubStance if (pObj->exists() ) { + // simply add the object modifier + iModifier += GetItemModifier( pObj, ubRef, usType); + for (attachmentList::iterator iter = (*pObj)[0]->attachments.begin(); iter != (*pObj)[0]->attachments.end(); ++iter) { if( iter->exists() ) @@ -10295,15 +10298,8 @@ INT32 GetObjectModifier( SOLDIERTYPE* pSoldier, OBJECTTYPE *pObj, UINT8 ubStance // Do not apply weapon bonus/penalty because this will be added one step below. We don't want to apply it twice. if ( pObj->usItem != ObjList[pSoldier->bScopeMode]->usItem ) iModifier += GetItemModifier(ObjList[pSoldier->bScopeMode], ubRef, usType); - // add weapon modifier - iModifier += GetItemModifier( pObj, ubRef, usType); } } - else - { - // simply add the object modifier - iModifier += GetItemModifier( pObj, ubRef, usType); - } } iModifier = __max(-100,iModifier);