@@ -272,7 +272,8 @@ void BICommandList::Init()
272272 sscanf (pAList->GetAttribute (" CommandNoteOffset" ), " %d,%d" , &m_NoteOffset.x , &m_NoteOffset.y );
273273
274274 // Setting values for arrows (up / down)
275- if (attr = pAList->GetAttribute (" UDArrow_Texture" ))
275+ attr = pAList->GetAttribute (" UDArrow_Texture" );
276+ if (attr)
276277 m_sUpDownArrowTexture = attr;
277278 BIUtils::ReadRectFromAttr (pAList, " UDArrow_UV_Up" , m_frUpArrowUV, m_frUpArrowUV);
278279 BIUtils::ReadRectFromAttr (pAList, " UDArrow_UV_Down" , m_frDownArrowUV, m_frDownArrowUV);
@@ -283,7 +284,8 @@ void BICommandList::Init()
283284 BIUtils::ReadPosFromAttr (pAList, " UDArrow_Offset_Down" , m_pntDownArrowOffset.x , m_pntDownArrowOffset.y ,
284285 m_pntDownArrowOffset.x , m_pntDownArrowOffset.y );
285286
286- if (attr = pAList->GetAttribute (" LRArrow_Texture" ))
287+ attr = pAList->GetAttribute (" LRArrow_Texture" );
288+ if (attr)
287289 m_sLeftRightArrowTexture = attr;
288290 BIUtils::ReadRectFromAttr (pAList, " LRArrow_UV_Left" , m_frLeftArrowUV, m_frLeftArrowUV);
289291 BIUtils::ReadRectFromAttr (pAList, " LRArrow_UV_Right" , m_frRightArrowUV, m_frRightArrowUV);
@@ -295,15 +297,17 @@ void BICommandList::Init()
295297 m_pntRightArrowOffset.x , m_pntRightArrowOffset.y );
296298
297299 // set values for the menu activity icon
298- if (attr = pAList->GetAttribute (" ActiveIcon_Texture" ))
300+ attr = pAList->GetAttribute (" ActiveIcon_Texture" );
301+ if (attr)
299302 m_sActiveIconTexture = attr;
300303 BIUtils::ReadPosFromAttr (pAList, " ActiveIcon_Offset" , m_pntActiveIconOffset.x , m_pntActiveIconOffset.y ,
301304 m_pntActiveIconOffset.x , m_pntActiveIconOffset.y );
302305 BIUtils::ReadPosFromAttr (pAList, " ActiveIcon_Size" , m_pntActiveIconSize.x , m_pntActiveIconSize.y ,
303306 m_pntActiveIconSize.x , m_pntActiveIconSize.y );
304307 BIUtils::ReadRectFromAttr (pAList, " ActiveIcon_UV1" , m_frActiveIconUV1, m_frActiveIconUV1);
305308 BIUtils::ReadRectFromAttr (pAList, " ActiveIcon_UV2" , m_frActiveIconUV2, m_frActiveIconUV2);
306- if (attr = pAList->GetAttribute (" ActiveIcon_Note" ))
309+ attr = pAList->GetAttribute (" ActiveIcon_Note" );
310+ if (attr)
307311 m_sActiveIconNote = attr;
308312 }
309313
0 commit comments