summaryrefslogtreecommitdiffstats
path: root/src/RankManager.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-01 13:41:20 +0200
committerMattes D <github@xoft.cz>2014-09-01 13:41:20 +0200
commit74204aed6c4be6ef37194b7f317671a3f03f1247 (patch)
tree98c7825ebf9853cab02300f53d2fc5b25d3ba4cd /src/RankManager.cpp
parentMerge pull request #1363 from mc-server/FurnaceRecipes (diff)
parentFixed style. (diff)
downloadcuberite-74204aed6c4be6ef37194b7f317671a3f03f1247.tar
cuberite-74204aed6c4be6ef37194b7f317671a3f03f1247.tar.gz
cuberite-74204aed6c4be6ef37194b7f317671a3f03f1247.tar.bz2
cuberite-74204aed6c4be6ef37194b7f317671a3f03f1247.tar.lz
cuberite-74204aed6c4be6ef37194b7f317671a3f03f1247.tar.xz
cuberite-74204aed6c4be6ef37194b7f317671a3f03f1247.tar.zst
cuberite-74204aed6c4be6ef37194b7f317671a3f03f1247.zip
Diffstat (limited to '')
-rw-r--r--src/RankManager.cpp4
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();