mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-21 05:44:06 +00:00
[Server] Return -1 in GetObjectSummonerPid() when the player is invalid
This commit is contained in:
parent
76731f5def
commit
7010575075
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue