From 8b733323660d1fad4125fdcea031087498ef7cd7 Mon Sep 17 00:00:00 2001 From: Kaelan Date: Wed, 16 Oct 2024 16:41:44 -0600 Subject: [PATCH] Proper static function use --- src/scripting/vmthunks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 0c738a424..856098469 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -880,7 +880,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset) PARAM_SELF_STRUCT_PROLOGUE(sector_t); PARAM_INT(pos); PARAM_FLOAT(val) - self->SetPlaneReflectivity(pos, val); + SetPlaneReflectivity(self, pos, val); return 0; } @@ -894,7 +894,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset) { PARAM_SELF_STRUCT_PROLOGUE(sector_t); PARAM_INT(pos); - ACTION_RETURN_FLOAT(self->GetPlaneReflectivity(pos)); + ACTION_RETURN_FLOAT(GetPlaneReflectivity(self, pos)); } static int PortalBlocksView(sector_t *self, int pos)