From 09a36afd0731b4565dc4628114e6cd76a42e8893 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 1 Mar 2018 16:11:34 -0500 Subject: Renamed "moon image" to color Also moved color sprites to a resources directory. --- database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'database.cpp') diff --git a/database.cpp b/database.cpp index f8b5016..2885d1f 100644 --- a/database.cpp +++ b/database.cpp @@ -44,7 +44,7 @@ database::~database() achievement database::getRandomAchievement() const { - std::string queryString = "SELECT achievements.achievement_id, achievements.game_id, achievements.title, games.moon_image FROM achievements INNER JOIN games ON games.game_id = achievements.game_id ORDER BY RANDOM() LIMIT 1"; + std::string queryString = "SELECT achievements.achievement_id, achievements.game_id, achievements.title, games.color FROM achievements INNER JOIN games ON games.game_id = achievements.game_id ORDER BY RANDOM() LIMIT 1"; sqlite3_stmt* ppstmt; if (sqlite3_prepare_v2( @@ -73,7 +73,7 @@ achievement database::getRandomAchievement() const result.achievementId = sqlite3_column_int(ppstmt, 0); result.gameId = sqlite3_column_int(ppstmt, 1); result.title = reinterpret_cast(sqlite3_column_text(ppstmt, 2)); - result.moonImage = reinterpret_cast(sqlite3_column_text(ppstmt, 3)); + result.color = reinterpret_cast(sqlite3_column_text(ppstmt, 3)); sqlite3_finalize(ppstmt); -- cgit 1.4.1