forked from mirror/openmw-tes3mp
Do not set the birth sign ID if it is empty.
This commit is contained in:
parent
a0447bcd95
commit
cf9b90386c
1 changed files with 3 additions and 1 deletions
|
@ -745,7 +745,9 @@ void WindowManager::onBirthSignDialogDone()
|
||||||
{
|
{
|
||||||
if (birthSignDialog)
|
if (birthSignDialog)
|
||||||
{
|
{
|
||||||
environment.mMechanicsManager->setPlayerBirthsign(birthSignDialog->getBirthId());
|
const std::string birthSignId = birthSignDialog->getBirthId();
|
||||||
|
if (!birthSignId.empty())
|
||||||
|
environment.mMechanicsManager->setPlayerBirthsign(birthSignId);
|
||||||
removeDialog(birthSignDialog);
|
removeDialog(birthSignDialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue