[Server] Return -1 in GetObjectSummonerPid() when the player is invalid

0.6.3
David Cernat 7 years ago
parent 76731f5def
commit 7010575075

@ -134,6 +134,8 @@ unsigned int ObjectFunctions::GetObjectSummonerPid(unsigned int i) noexcept
if (player != nullptr) if (player != nullptr)
return player->getId(); return player->getId();
return -1;
} }
const char *ObjectFunctions::GetObjectSummonerRefId(unsigned int i) noexcept const char *ObjectFunctions::GetObjectSummonerRefId(unsigned int i) noexcept

Loading…
Cancel
Save