don't crash if loading fails
This commit is contained in:
@@ -86,6 +86,8 @@ void ControllerStateDisplay::Update( float fDelta )
|
|||||||
FOREACH_ENUM( ControllerStateButton, b )
|
FOREACH_ENUM( ControllerStateButton, b )
|
||||||
{
|
{
|
||||||
Button &button = m_Buttons[ b ];
|
Button &button = m_Buttons[ b ];
|
||||||
|
if( !button.spr.IsLoaded() )
|
||||||
|
continue;
|
||||||
|
|
||||||
bool bVisible = INPUTMAPPER->IsBeingPressed( button.gi, m_mp );
|
bool bVisible = INPUTMAPPER->IsBeingPressed( button.gi, m_mp );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user