Fix confusing local and global variables having the same name.

This commit is contained in:
Steve Checkoway
2006-09-15 22:51:29 +00:00
parent a5dc103bc2
commit 5734377d37
+2 -2
View File
@@ -152,8 +152,8 @@ void InputFilter::ResetDevice( InputDevice device )
LockMut(*queuemutex); LockMut(*queuemutex);
RageTimer now; RageTimer now;
const ButtonStateMap g_ButtonStates( g_ButtonStates ); const ButtonStateMap ButtonStates( g_ButtonStates );
FOREACHM_CONST( DeviceInput, ButtonState, g_ButtonStates, b ) FOREACHM_CONST( DeviceInput, ButtonState, ButtonStates, b )
{ {
const DeviceInput &di = b->first; const DeviceInput &di = b->first;
if( di.device == device ) if( di.device == device )