assert instead of AV on missing Character
This commit is contained in:
@@ -91,6 +91,7 @@ void ProfileManager::Init()
|
|||||||
{
|
{
|
||||||
CString sCharacterID = FIXED_PROFILE_CHARACTER_ID( i );
|
CString sCharacterID = FIXED_PROFILE_CHARACTER_ID( i );
|
||||||
Character *pCharacter = CHARMAN->GetCharacterFromID( sCharacterID );
|
Character *pCharacter = CHARMAN->GetCharacterFromID( sCharacterID );
|
||||||
|
ASSERT_M( pCharacter, sCharacterID );
|
||||||
CString sProfileID;
|
CString sProfileID;
|
||||||
CreateLocalProfile( pCharacter->GetDisplayName(), sProfileID );
|
CreateLocalProfile( pCharacter->GetDisplayName(), sProfileID );
|
||||||
Profile* pProfile = GetLocalProfile( sProfileID );
|
Profile* pProfile = GetLocalProfile( sProfileID );
|
||||||
|
|||||||
Reference in New Issue
Block a user