mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
fix crash copying game (by replacing assertion with a stricter one)
This commit is contained in:
parent
7e7305c1be
commit
e9ccf5a305
1 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ public class GameSummary {
|
|||
public DeviceRole serverRole;
|
||||
public int nPacketsPending;
|
||||
|
||||
private int m_giFlags;
|
||||
private Integer m_giFlags;
|
||||
private String m_playersSummary;
|
||||
private CurGameInfo m_gi;
|
||||
private Context m_context;
|
||||
|
@ -270,7 +270,7 @@ public class GameSummary {
|
|||
|
||||
public void setGiFlags( int flags )
|
||||
{
|
||||
m_giFlags = flags;
|
||||
m_giFlags = new Integer( flags );
|
||||
}
|
||||
|
||||
public String summarizePlayer( int indx )
|
||||
|
@ -326,7 +326,7 @@ public class GameSummary {
|
|||
boolean result = false;
|
||||
if ( !gameOver && 0 <= turn ) {
|
||||
// HACK!!! Need to fix so we ensure m_giFlags is set here
|
||||
Assert.assertNotNull( m_gi );
|
||||
Assert.assertTrue( null != m_gi || null != m_giFlags );
|
||||
result = localTurnNextImpl( giflags(), turn );
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue