Fixed Database.getGameOptions()

this method was referencing the game history table

Change-Id: I4ce7fd0e60a4b89cf76e86e80e69212612c0d8d1
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-02-12 10:49:27 -05:00
parent 29ea55bd28
commit 363686fd1c

View File

@@ -456,7 +456,7 @@ public class Database {
* @author ricky barrette
*/
public ContentValues getGameOptions(long gameId){
return parseCursor(mDb.query(GAME_HISTORY_TABLE, new String[]{ KEY, KEY_VALUE }, KEY_NAME +" = "+ DatabaseUtils.sqlEscapeString(getGameName(gameId)), null, null, null, null));
return parseCursor(mDb.query(GAME_OPTIONS_TABLE, new String[]{ KEY, KEY_VALUE }, KEY_NAME +" = "+ DatabaseUtils.sqlEscapeString(getGameName(gameId)), null, null, null, null));
}
/**