forked from teamnwah/openmw-tes3coop
Fix crash starting a new game.
This commit is contained in:
parent
c9011f707f
commit
4f94a31b54
1 changed files with 6 additions and 0 deletions
|
@ -88,6 +88,12 @@ namespace MWScript
|
|||
|
||||
virtual void execute (Interpreter::Runtime& runtime)
|
||||
{
|
||||
if (!MWBase::Environment::get().getWorld()->getPlayerPtr().isInCell())
|
||||
{
|
||||
runtime.push (0);
|
||||
return;
|
||||
}
|
||||
|
||||
bool interior =
|
||||
!MWBase::Environment::get().getWorld()->getPlayerPtr().getCell()->getCell()->isExterior();
|
||||
|
||||
|
|
Loading…
Reference in a new issue