From 1b84aeb5b9e67493a3fe0f0984695ba6ccbbeb20 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 2 May 2013 14:30:39 +0200 Subject: [PATCH] fixed a problem with editing records that do not exist in base --- apps/opencs/model/world/record.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/opencs/model/world/record.hpp b/apps/opencs/model/world/record.hpp index c8f728e7d..4d95b5c91 100644 --- a/apps/opencs/model/world/record.hpp +++ b/apps/opencs/model/world/record.hpp @@ -81,7 +81,9 @@ namespace CSMWorld throw std::logic_error ("attempt to modify a deleted record"); mModified = modified; - mState = State_Modified; + + if (mState!=State_ModifiedOnly) + mState = State_Modified; } template