1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 09:36:37 +00:00

fixed member variable access in OpenCS script compiler (Fixes #2011)

This commit is contained in:
Marc Zinnschlag 2014-10-13 15:23:00 +02:00
parent 02acf60c0b
commit 8062faa51a

View File

@ -47,7 +47,7 @@ std::pair<char, bool> 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);