Skip to content

Commit

Permalink
fix: server runs now (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC authored Jan 14, 2025
1 parent c968dc9 commit f4b5591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dDatabase/GameDatabase/SQLite/Tables/Servers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ void SQLiteDatabase::SetMasterInfo(const MasterInfo& info) {
// We only want our 1 entry anyways, so we can just delete all and reinsert the one we want
// since it would be two queries anyways.
ExecuteDelete("DELETE FROM servers;");
ExecuteInsert("INSERT INTO `servers` (`name`, `ip`, `port`, `state`, `version`, `master_password`) VALUES ('master', ?, ?, 0, 171022 ?)", info.ip, info.port, info.password);
ExecuteInsert("INSERT INTO `servers` (`name`, `ip`, `port`, `state`, `version`, `master_password`) VALUES ('master', ?, ?, 0, 171022, ?)", info.ip, info.port, info.password);
}

std::optional<IServers::MasterInfo> SQLiteDatabase::GetMasterInfo() {
Expand Down

0 comments on commit f4b5591

Please sign in to comment.