Fix crash on ARM: don't compare dummy strings.

This commit is contained in:
ehouse 2007-03-18 14:45:51 +00:00
parent e22a131687
commit 3974ac4639

View file

@ -137,10 +137,7 @@ savedGamesHandleEvent( EventPtr event )
case XW_SAVEDGAMES_USE_BUTTON: /* write the new name to the selected
record */
newName = FldGetTextPtr( state->nameField );
if ( !!newName &&
(*newName != '\0') &&
0 != StrCompare(newName,
state->stringPtrs[state->displayGameIndex])){
if ( !!newName && (*newName != '\0') ) {
XP_U16 len = FldGetTextLength( state->nameField );
writeNameToGameRecord( globals, state->displayGameIndex,
newName, len );