Better crash message.

This commit is contained in:
Steve Checkoway
2007-04-01 12:06:04 +00:00
parent dfe930eea9
commit 07a517da09
+2 -1
View File
@@ -2379,7 +2379,8 @@ const Style *GameManager::GetFirstCompatibleStyle( const Game *pGame, int iNumPl
FOREACH_CONST( const Style*, vpStyles, s )
if( (*s)->m_StepsType == st )
return *s;
FAIL_M("");
FAIL_M( ssprintf("No compatible styles for %s - %s with %d player%s.", pGame->m_szName,
StepsTypeToString(st).c_str(), iNumPlayers, iNumPlayers==1?"":"s") );
return NULL;
}