Don't allow the player to activate objects when dead

coverity_scan^2
scrawl 8 years ago
parent 454d1ffaef
commit db09858f59

@ -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();

Loading…
Cancel
Save