From 6738bc8dea3375d2a5e4cff91f7a9f7720e4c372 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 28 Feb 2022 19:15:02 +0100 Subject: [PATCH] Fix minor things --- Source/Engine/Particles/Particles.cpp | 2 +- Source/Engine/Scripting/Events.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.