assert instead of AV on missing Character

This commit is contained in:
Chris Danford
2005-08-30 14:10:24 +00:00
parent 96b28c7522
commit 23540308ef
+1
View File
@@ -91,6 +91,7 @@ void ProfileManager::Init()
{
CString sCharacterID = FIXED_PROFILE_CHARACTER_ID( i );
Character *pCharacter = CHARMAN->GetCharacterFromID( sCharacterID );
ASSERT_M( pCharacter, sCharacterID );
CString sProfileID;
CreateLocalProfile( pCharacter->GetDisplayName(), sProfileID );
Profile* pProfile = GetLocalProfile( sProfileID );