Explicitly use the iterator approach.

Why should iterators be used for the buttons to erase anyway?
This commit is contained in:
Jason Felds
2013-04-28 16:27:32 -04:00
parent 8502c59ee2
commit 3f8796988d
+1 -1
View File
@@ -274,7 +274,7 @@ void InputFilter::Update( float fDeltaTime )
vector<ButtonStateMap::iterator> ButtonsToErase;
FOREACHM( DeviceButtonPair, ButtonState, g_ButtonStates, b )
for( map<DeviceButtonPair, ButtonState>::iterator b = g_ButtonStates.begin(); b != g_ButtonStates.end(); ++b )
{
di.device = b->first.device;
di.button = b->first.button;