don't crash if loading fails

This commit is contained in:
Glenn Maynard
2007-08-25 22:33:34 +00:00
parent 9929c2972f
commit d126a91013
+2
View File
@@ -86,6 +86,8 @@ void ControllerStateDisplay::Update( float fDelta )
FOREACH_ENUM( ControllerStateButton, b )
{
Button &button = m_Buttons[ b ];
if( !button.spr.IsLoaded() )
continue;
bool bVisible = INPUTMAPPER->IsBeingPressed( button.gi, m_mp );