Fix crash when switching to game with same-language dict: inform draw

even if tile sets the same since old is about to be destroyed.
This commit is contained in:
ehouse 2008-09-28 16:43:24 +00:00
parent 960fee16cc
commit b5a823fd93
2 changed files with 2 additions and 2 deletions

View file

@ -2932,7 +2932,7 @@ dictChanged( void* p_board, const DictionaryCtxt* oldDict,
{
BoardCtxt* board = (BoardCtxt*)p_board;
XP_ASSERT( !!board->draw );
if ( NULL == oldDict || !dict_tilesAreSame( oldDict, newDict ) ) {
if ( (NULL == oldDict) || (oldDict != newDict) ) {
draw_dictChanged( board->draw, newDict );
}
}

View file

@ -101,7 +101,7 @@ mpool_destroy( MemPoolCtx* mpool )
MemPoolEntry* entry;
for ( entry = mpool->usedList; !!entry; entry = entry->next ) {
#ifndef FOR_GREMLINS /* I don't want to hear about this right now */
XP_LOGF( XP_P " from ln %ld of %s\n",
XP_LOGF( "%s: " XP_P " from ln %ld of %s\n", __func__,
entry->ptr, entry->lineNo, entry->fileName );
#ifdef DEBUG
{