Merge pull request #909 from Abextm/scriptvm-fix

injector: Fix scriptvm not updating currentScript
This commit is contained in:
Adam
2018-03-08 21:19:36 -05:00
committed by GitHub

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];