From db09858f5962f35c807463203469187c998dfe16 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 13 Oct 2016 14:42:10 +0200 Subject: [PATCH] Don't allow the player to activate objects when dead --- apps/openmw/mwworld/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/player.cpp b/apps/openmw/mwworld/player.cpp index baa90a0ec..b8eedec23 100644 --- a/apps/openmw/mwworld/player.cpp +++ b/apps/openmw/mwworld/player.cpp @@ -212,7 +212,7 @@ namespace MWWorld MWWorld::Ptr player = getPlayer(); const MWMechanics::NpcStats &playerStats = player.getClass().getNpcStats(player); - if (playerStats.isParalyzed() || playerStats.getKnockedDown()) + if (playerStats.isParalyzed() || playerStats.getKnockedDown() || playerStats.isDead()) return; MWWorld::Ptr toActivate = MWBase::Environment::get().getWorld()->getFacedObject();