From e899575a7ab9a6c9c3ffab020307eedaf4dee434 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 23 Dec 2024 16:54:25 +0300 Subject: [PATCH] update Emitter randomizer --- src/graphics/render/Emitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/render/Emitter.cpp b/src/graphics/render/Emitter.cpp index 76b2f0185..ff8413d52 100644 --- a/src/graphics/render/Emitter.cpp +++ b/src/graphics/render/Emitter.cpp @@ -23,7 +23,7 @@ Emitter::Emitter( texture(texture), count(count), preset(std::move(preset)) { - random.setSeed(rand()); + random.setSeed(reinterpret_cast(this)); this->prototype.emitter = this; timer = preset.spawnInterval * random.randFloat(); }