From 1811bad835f46eb65f73fec785e10bc20e89c72d Mon Sep 17 00:00:00 2001 From: woogerboy21 Date: Tue, 9 May 2017 23:22:48 -0400 Subject: [PATCH] Fix room chat history (#2698) Looks like an addition to the table shifted things. We probably should look into some how use the actual column names (if it can be done). But for now this should fix the server room chat history. --- servatrice/src/servatrice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servatrice/src/servatrice.cpp b/servatrice/src/servatrice.cpp index 0139ca37..fcae32b1 100644 --- a/servatrice/src/servatrice.cpp +++ b/servatrice/src/servatrice.cpp @@ -297,7 +297,7 @@ bool Servatrice::initServer() while (query2->next()) gameTypes.append(query2->value(0).toString()); addRoom(new Server_Room(query->value(0).toInt(), - query->value(6).toInt(), + query->value(7).toInt(), query->value(1).toString(), query->value(2).toString(), query->value(3).toString().toLower(), @@ -909,4 +909,4 @@ bool Servatrice::getEnableRegistrationAudit() const { bool Servatrice::getEnableForgotPasswordAudit() const { return settingsCache->value("audit/enable_forgotpassword_audit", true).toBool(); -} \ No newline at end of file +}