diff options
author | worktycho <work.tycho@gmail.com> | 2014-08-31 22:26:02 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-08-31 22:26:02 +0200 |
commit | 468c2558d632bb5702c12577c74967c50327accf (patch) | |
tree | 47bdd3d96f7757c3e43073981d0862d4d0b53abd | |
parent | Changed null check to assert (diff) | |
download | cuberite-468c2558d632bb5702c12577c74967c50327accf.tar cuberite-468c2558d632bb5702c12577c74967c50327accf.tar.gz cuberite-468c2558d632bb5702c12577c74967c50327accf.tar.bz2 cuberite-468c2558d632bb5702c12577c74967c50327accf.tar.lz cuberite-468c2558d632bb5702c12577c74967c50327accf.tar.xz cuberite-468c2558d632bb5702c12577c74967c50327accf.tar.zst cuberite-468c2558d632bb5702c12577c74967c50327accf.zip |
-rw-r--r-- | src/RankManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RankManager.cpp b/src/RankManager.cpp index dc6eec9e4..e5896f8f3 100644 --- a/src/RankManager.cpp +++ b/src/RankManager.cpp @@ -477,8 +477,8 @@ AString cRankManager::GetPlayerRankName(const AString & a_PlayerUUID) { SQLite::Statement stmt(m_DB, "SELECT Rank.Name FROM Rank LEFT JOIN PlayerRank ON Rank.RankID = PlayerRank.RankID WHERE PlayerRank.PlayerUUID = ?"); stmt.bind(1, a_PlayerUUID); - stmt.executeStep(); - if (stmt.isDone()) + // executeStep returns false on no data + if (!stmt.executeStep()) { // No data returned from the DB return AString(); |