From 0a208597c6c0cabd931a70df1ebb0be559feb791 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 30 Apr 2022 12:13:20 +0200 Subject: [PATCH] - fixed return type of MSTimeF script function. --- src/common/objects/dobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/objects/dobject.cpp b/src/common/objects/dobject.cpp index 9f9de3695a..dfc68fcd50 100644 --- a/src/common/objects/dobject.cpp +++ b/src/common/objects/dobject.cpp @@ -495,7 +495,7 @@ DEFINE_ACTION_FUNCTION(DObject, MSTime) DEFINE_ACTION_FUNCTION_NATIVE(DObject, MSTimef, I_msTimeF) { - ACTION_RETURN_INT((double)I_msTimeF()); + ACTION_RETURN_FLOAT(I_msTimeF()); } void *DObject::ScriptVar(FName field, PType *type)