mixins: Use assert in scriptvm

This commit is contained in:
Max Weber
2018-03-24 18:53:42 -06:00
parent 37d0955d74
commit 764e361626

View File

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