fix reported crash: assertion copying non-network game

This commit is contained in:
Eric House 2014-02-03 07:28:38 -08:00
parent f805d7309f
commit 6dfaf8127f

View file

@ -843,8 +843,11 @@ public class GamesList extends XWExpandableListActivity
public void run() {
byte[] stream = GameUtils.savedGame( GamesList.this,
selRowIDs[0] );
long groupID =
XWPrefs.getDefaultNewGameGroup(GamesList.this);
GameLock lock =
GameUtils.saveNewGame( GamesList.this, stream );
GameUtils.saveNewGame( GamesList.this, stream,
groupID );
DBUtils.saveSummary( GamesList.this, lock, smry );
m_selGames.add( lock.getRowid() );
lock.unlock();