aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2015-03-13 21:11:44 +0100
committerVincent-Michael <Vincent_Michael@gmx.de>2015-03-13 21:12:18 +0100
commit04020e717c1303bb9b175bad63d4ce155c810e88 (patch)
tree1ba00d51198cb8ba0f04403f169678b09f4dfb14 /src
parentef54ee52e265bafe846c5ba03173e2fa8d60bea6 (diff)
Core/SupportMgr: Fix static analysis issue
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Support/SupportMgr.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Support/SupportMgr.h b/src/server/game/Support/SupportMgr.h
index eddb3cebf75..4c4ca485a3e 100644
--- a/src/server/game/Support/SupportMgr.h
+++ b/src/server/game/Support/SupportMgr.h
@@ -101,9 +101,10 @@ public:
{
std::string name;
if (!_assignedTo.IsEmpty())
- ObjectMgr::GetPlayerNameByGUID(_assignedTo, name);
+ if (ObjectMgr::GetPlayerNameByGUID(_assignedTo, name))
+ return name;
- return name;
+ return nullptr;
}
std::string const& GetComment() { return _comment; }