From 344f2b535a3b0ce382c97fa5cd1859014fdb3c46 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 27 Oct 2016 15:02:40 +0300 Subject: [PATCH] Fix setting of index for ID_SCRIPT_MEMBER_SHORT in InterpreterContext --- apps/openmw/mwscript/interpretercontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwscript/interpretercontext.cpp b/apps/openmw/mwscript/interpretercontext.cpp index 6165d8981..be8311dda 100644 --- a/apps/openmw/mwscript/interpretercontext.cpp +++ b/apps/openmw/mwscript/interpretercontext.cpp @@ -613,7 +613,7 @@ namespace MWScript { mwmp::WorldEvent *event = mwmp::Main::get().getNetworking()->createWorldEvent(); event->cellRef.mRefID = id; - event->varName = name; + event->index = index; event->shortVal = value; mwmp::Main::get().getNetworking()->GetWorldPacket(ID_SCRIPT_MEMBER_SHORT)->Send(event);