From 662027f4296bc63282540ef7dd3b23ef25b397ae Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Sun, 4 Sep 2022 17:07:38 +0300 Subject: [PATCH] Fix typo that was always calling SetXOffset even in SetYOffset --- src/scripting/vmthunks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 63370c8c1..10220fd63 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -562,7 +562,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset) PARAM_SELF_STRUCT_PROLOGUE(sector_t); PARAM_INT(pos); PARAM_FLOAT(o); - self->SetXOffset(pos, o); + self->SetYOffset(pos, o); return 0; }