forked from mirror/openmw-tes3mp
Update door.cpp
typo fix
This commit is contained in:
parent
2a65aaf5ab
commit
3cc6da1db2
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ namespace MWClass
|
||||||
std::string keyName;
|
std::string keyName;
|
||||||
|
|
||||||
// FIXME: If NPC activate teleporting door, it can lead to crash due to iterator invalidation in the Actors update.
|
// FIXME: If NPC activate teleporting door, it can lead to crash due to iterator invalidation in the Actors update.
|
||||||
// Make such activation a no-op for now, how in vanilla game.
|
// Make such activation a no-op for now, like how it is in the vanilla game.
|
||||||
if (actor != MWMechanics::getPlayer() && ptr.getCellRef().getTeleport())
|
if (actor != MWMechanics::getPlayer() && ptr.getCellRef().getTeleport())
|
||||||
{
|
{
|
||||||
std::shared_ptr<MWWorld::Action> action(new MWWorld::FailedAction(std::string(), ptr));
|
std::shared_ptr<MWWorld::Action> action(new MWWorld::FailedAction(std::string(), ptr));
|
||||||
|
|
Loading…
Reference in a new issue