1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-07 03:07:45 +00:00

Sastasha: use int RNG

(cherry picked from commit e44f2be26ab96ab866d35d4ed849564e23dfef6f)
This commit is contained in:
Rushi 2022-02-21 05:05:45 +01:00
parent 673157cef8
commit 3aa65a1ac9

View file

@ -59,7 +59,7 @@ public:
{
// Random coral
auto& RNGMgr = Common::Service< World::Manager::RNGMgr >::ref();
instance.setCustomVar( Coral, static_cast< uint64_t >( RNGMgr.getRandGenerator< float >( Corals::Blue, Corals::Green ).next() ) );
instance.setCustomVar( Coral, RNGMgr.getRandGenerator< uint32_t >( Corals::Blue, Corals::Green ).next() );
switch( instance.getCustomVar( Coral ) )
{