From bbe00562eb7e12b83b66a6c2ff2319adc1acb78d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 29 Dec 2018 17:50:31 +0100 Subject: [PATCH] - fixed the direct native variant of DynamicLight.SetOffset. --- src/g_shared/a_dynlight.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_shared/a_dynlight.cpp b/src/g_shared/a_dynlight.cpp index 14f908df8e..441dcd1009 100644 --- a/src/g_shared/a_dynlight.cpp +++ b/src/g_shared/a_dynlight.cpp @@ -426,9 +426,9 @@ void ADynamicLight::SetOffset(const DVector3 &pos) UpdateLocation(); } -static void SetOffset(ADynamicLight *self, const DVector3 &pos) +static void SetOffset(ADynamicLight *self, double x, double y, double z) { - self->SetOffset(pos); + self->SetOffset(DVector3(x, y, z)); } DEFINE_ACTION_FUNCTION_NATIVE(ADynamicLight, SetOffset, SetOffset)