mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Add missing Iter->Exists() checks
This commit is contained in:
@@ -14668,7 +14668,7 @@ void SOLDIERTYPE::SoldierInventoryCoolDown( void )
|
||||
attachmentList::iterator iterend = (*pObj)[0]->attachments.end( );
|
||||
for ( attachmentList::iterator iter = (*pObj)[0]->attachments.begin( ); iter != iterend; ++iter )
|
||||
{
|
||||
if ( Item[iter->usItem].usFlashLightRange )
|
||||
if ( iter->exists() && Item[iter->usItem].usFlashLightRange )
|
||||
flashlightfound = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user