- fixed the direct native variant of DynamicLight.SetOffset.

This commit is contained in:
Christoph Oelckers 2018-12-29 17:50:31 +01:00
parent 3712c6beda
commit bbe00562eb

View file

@ -426,9 +426,9 @@ void ADynamicLight::SetOffset(const DVector3 &pos)
UpdateLocation(); 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) DEFINE_ACTION_FUNCTION_NATIVE(ADynamicLight, SetOffset, SetOffset)