diff --git a/Source/Engine/Particles/Particles.cpp b/Source/Engine/Particles/Particles.cpp index c9b4f8fd6..672644fad 100644 --- a/Source/Engine/Particles/Particles.cpp +++ b/Source/Engine/Particles/Particles.cpp @@ -1024,7 +1024,7 @@ void UpdateGPU(RenderTask* task, GPUContext* context) const auto& track = particleSystem->Tracks[j]; if (track.Type != ParticleSystem::Track::Types::Emitter || track.Disabled) continue; - const uint32 emitterIndex = track.AsEmitter.Index; + const int32 emitterIndex = track.AsEmitter.Index; ParticleEmitter* emitter = particleSystem->Emitters[emitterIndex].Get(); if (!emitter || !emitter->IsLoaded() || emitter->SimulationMode != ParticlesSimulationMode::GPU || instance.Emitters.Count() <= emitterIndex) continue; diff --git a/Source/Engine/Scripting/Events.h b/Source/Engine/Scripting/Events.h index 6599f2cda..c5b798e12 100644 --- a/Source/Engine/Scripting/Events.h +++ b/Source/Engine/Scripting/Events.h @@ -18,7 +18,7 @@ class FLAXENGINE_API ScriptingEvents public: /// - /// Global table for registered even binder methods (key is pair of type and event name, value is method that takes instance with event, object to bind and flag to bind or unbind). + /// Global table for registered event binder methods (key is pair of type and event name, value is method that takes instance with event, object to bind and flag to bind or unbind). /// /// /// Key: pair of event type, event name.