From 8062faa51a1792c35bf8e8e46f8fdf2113ecee37 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Mon, 13 Oct 2014 15:23:00 +0200 Subject: [PATCH] fixed member variable access in OpenCS script compiler (Fixes #2011) --- apps/opencs/model/world/scriptcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/model/world/scriptcontext.cpp b/apps/opencs/model/world/scriptcontext.cpp index 9da49defe..07031d39c 100644 --- a/apps/opencs/model/world/scriptcontext.cpp +++ b/apps/opencs/model/world/scriptcontext.cpp @@ -47,7 +47,7 @@ std::pair CSMWorld::ScriptContext::getMemberType (const std::string& int index = mData.getScripts().searchId (id2); bool reference = false; - if (index!=-1) + if (index==-1) { // ID is not a script ID. Search for a matching referenceable instead. index = mData.getReferenceables().searchId (id2);