mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:06:43 +00:00
Fix checking strings in SetName & SetBirthsign
This commit is contained in:
parent
9bcca6d141
commit
e661a35ac2
1 changed files with 3 additions and 3 deletions
|
@ -20,10 +20,10 @@ void StatsFunctions::SetName(unsigned short pid, const char *name) noexcept
|
||||||
Player *player;
|
Player *player;
|
||||||
GET_PLAYER(pid, player,);
|
GET_PLAYER(pid, player,);
|
||||||
|
|
||||||
if (player->GetCell()->mName == name)
|
if (player->Npc()->mName == name)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
player->GetCell()->mName = name;
|
player->Npc()->mName = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *StatsFunctions::GetName(unsigned short pid) noexcept
|
const char *StatsFunctions::GetName(unsigned short pid) noexcept
|
||||||
|
@ -40,7 +40,7 @@ void StatsFunctions::SetBirthsign(unsigned short pid, const char *sign) noexcept
|
||||||
Player *player;
|
Player *player;
|
||||||
GET_PLAYER(pid, player,);
|
GET_PLAYER(pid, player,);
|
||||||
|
|
||||||
if (player->GetCell()->mName == sign)
|
if (*player->BirthSign() == sign)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
*player->BirthSign() = sign;
|
*player->BirthSign() = sign;
|
||||||
|
|
Loading…
Reference in a new issue