From 68a6826ee59d8103bc7c2ee74a6e209dcb14523e Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 9 Jan 2023 01:18:34 +0100 Subject: [PATCH] Work on fixing compile. --- noise.cpp | 2 +- noise.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/noise.cpp b/noise.cpp index abd16f3..35f6f3a 100644 --- a/noise.cpp +++ b/noise.cpp @@ -36,7 +36,7 @@ const String FastNoise::BINDING_STRING_FRACTAL_TYPE = "FBM,Billow,Rigid Multi"; const String FastNoise::BINDING_STRING_CELLULAR_DISTANCE_FUNCTION = "Euclidean,Manhattan,Naural"; const String FastNoise::BINDING_STRING_CELLULAR_RETURN_TYPE = "Cell Value,Noise lookup,Distance,Distance 2,Distance 2 Add,Distance 2 Sub,Distance 2 Mul,Distance 2 Div"; -FastNoise::FastNoise() : Reference() { +FastNoise::FastNoise() : RefCounted() { } diff --git a/noise.h b/noise.h index 5b2d0c8..2c636ee 100644 --- a/noise.h +++ b/noise.h @@ -4,7 +4,7 @@ #include "core/version.h" #if VERSION_MAJOR > 3 -#include "core/object/reference.h" +#include "core/object/ref_counted.h" #include "core/string/ustring.h" #else #include "core/reference.h" @@ -23,8 +23,8 @@ typedef PackedInt64Array PoolIntArray; typedef fastnoise::FastNoise _FastNoise; -class FastNoise : public Reference { - GDCLASS(FastNoise, Reference) +class FastNoise : public RefCounted { + GDCLASS(FastNoise, RefCounted) public: static const String BINDING_STRING_TYPE;