forked from teamnwah/openmw-tes3coop
Do not allow disabling the player object
This commit is contained in:
parent
b72d5c5190
commit
de97a8a3da
1 changed files with 3 additions and 0 deletions
|
@ -781,6 +781,9 @@ namespace MWWorld
|
|||
|
||||
if (reference.getRefData().isEnabled())
|
||||
{
|
||||
if (reference == getPlayerPtr())
|
||||
throw std::runtime_error("can not disable player object");
|
||||
|
||||
reference.getRefData().disable();
|
||||
|
||||
if(mWorldScene->getActiveCells().find (reference.getCell())!=mWorldScene->getActiveCells().end() && reference.getRefData().getCount())
|
||||
|
|
Loading…
Reference in a new issue