Do not allow disabling the player object

openmw-37
scrawl 9 years ago
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…
Cancel
Save