injector: Fix scriptvm not updating currentScript

This commit is contained in:
Max Weber
2018-03-08 18:53:05 -07:00
parent 1ea2c341be
commit badc1e9182

View File

@@ -58,10 +58,10 @@ public abstract class ScriptVMMixin implements RSClient
{
if (opcode == RUNELITE_EXECUTE)
{
//if (currentScript.getInstructions()[currentScriptPC] != RUNELITE_EXECUTE)
//{
// throw new AssertionError("currentScriptPC is wrong");
//}
if (currentScript.getInstructions()[currentScriptPC] != RUNELITE_EXECUTE)
{
throw new AssertionError("currentScriptPC is wrong");
}
int stringStackSize = client.getStringStackSize();
String stringOp = client.getStringStack()[--stringStackSize];