fix crash copying game (by replacing assertion with a stricter one)

This commit is contained in:
Eric House 2015-03-04 06:49:52 -08:00
parent 7e7305c1be
commit e9ccf5a305

View file

@ -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;