From 2eee3d32f12dd8f0c510f6ef3954e0a5ba1c0943 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sat, 7 Aug 2010 20:29:10 +0200 Subject: [PATCH] fixed World::disable function --- apps/openmw/mwworld/world.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwworld/world.cpp b/apps/openmw/mwworld/world.cpp index 581dcc5862..296d1d0f27 100644 --- a/apps/openmw/mwworld/world.cpp +++ b/apps/openmw/mwworld/world.cpp @@ -384,9 +384,9 @@ namespace MWWorld void World::disable (Ptr reference) { - if (!reference.getRefData().isEnabled()) + if (reference.getRefData().isEnabled()) { - reference.getRefData().enable(); + reference.getRefData().disable(); if (MWRender::CellRender *render = searchRender (reference.getCell())) {