mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
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:
parent
960fee16cc
commit
b5a823fd93
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue