Skip to content

Commit

Permalink
Fix "Second type should be 0 in CALLV"
Browse files Browse the repository at this point in the history
  • Loading branch information
CST1229 committed Mar 21, 2024
1 parent 19a4f44 commit d8161b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UndertaleModLib/Compiler/AssemblyWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ callv.v argcount
funcVar.Text = fc.Text;
AssembleVariablePush(cw, funcVar, false, false, false, isSelf ? InstanceType.Builtin : InstanceType.Stacktop);

cw.Emit(Opcode.CallV, DataType.Variable, DataType.Variable).Extra = argCount;
cw.Emit(Opcode.CallV, DataType.Variable).Extra = argCount;
}
else if (fc.Children[0].Text == "new")
{
Expand Down

0 comments on commit d8161b0

Please sign in to comment.