diff --git a/src/mods/bindings/Sdk.cpp b/src/mods/bindings/Sdk.cpp index 4444a5cfc..0d28d5479 100644 --- a/src/mods/bindings/Sdk.cpp +++ b/src/mods/bindings/Sdk.cpp @@ -799,6 +799,10 @@ sol::object parse_data(lua_State* l, void* data, ::sdk::RETypeDefinition* data_t return sol::make_object(l, ret_val_f); } } + case "System.Double"_fnv: { + auto ret_val_d = *(double*)data; + return sol::make_object(l, ret_val_d); + } case "System.Boolean"_fnv: { auto ret_val_b = *(bool*)data; return sol::make_object(l, ret_val_b); @@ -929,6 +933,9 @@ void set_data(void* data, ::sdk::RETypeDefinition* data_type, sol::object& value case "System.Single"_fnv: *(float*)data = value.as(); return; + case "System.Double"_fnv: + *(double*)data = value.as(); + return; case "System.Boolean"_fnv: *(bool*)data = value.as(); return;