From 176cf07f115711c9b1f635b7d5b8f5acc4322db2 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Thu, 22 Nov 2012 22:57:37 +0100 Subject: [PATCH] MODIFIED: #1471 Incompatible / unincrementable iterators assert will no longer be hit in debug mode with M$ STL when updating the interface anims. --- code/nel/src/gui/widget_manager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/nel/src/gui/widget_manager.cpp b/code/nel/src/gui/widget_manager.cpp index 63c0c5a1a..7b1baf54d 100644 --- a/code/nel/src/gui/widget_manager.cpp +++ b/code/nel/src/gui/widget_manager.cpp @@ -3072,9 +3072,8 @@ namespace NLGUI void CWidgetManager::updateAnims() { - std::vector< CInterfaceAnim* >::iterator itr; - for( itr = activeAnims.begin(); itr != activeAnims.end(); ++itr ) - (*itr)->update(); + for( std::vector< CInterfaceAnim* >::size_type i = 0; i < activeAnims.size(); i++ ) + activeAnims[ i ]->update(); }