mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 18:39:59 +00:00
Do not allow disabling the player object
This commit is contained in:
parent
b72d5c5190
commit
de97a8a3da
@ -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…
x
Reference in New Issue
Block a user