From 208f7bde3b73bf794ac55498c77b380a688f0e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Lu=C3=ADs=20Vaz=20Silva?= Date: Mon, 18 Sep 2023 19:12:07 -0300 Subject: [PATCH] fix type conversion warnings --- src/playsim/p_effect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playsim/p_effect.cpp b/src/playsim/p_effect.cpp index 83e75c793a0..77c8866a2b6 100644 --- a/src/playsim/p_effect.cpp +++ b/src/playsim/p_effect.cpp @@ -299,7 +299,7 @@ void P_ThinkParticles (FLevelLocals *Level) } Level->Particles.Resize(last_alive + 1); - last_alive = Level->ReplaceableParticles.size() - 1; + last_alive = ((int)Level->ReplaceableParticles.size()) - 1; for(int i = last_alive; i > 0; i--) { particle_t * p = &Level->ReplaceableParticles[i]; @@ -312,7 +312,7 @@ void P_ThinkParticles (FLevelLocals *Level) Level->ReplaceableParticles.resize(last_alive + 1); - ParticleCount = Level->Particles.Size() + Level->ReplaceableParticles.size(); + ParticleCount = Level->Particles.Size() + (int)Level->ReplaceableParticles.size(); } enum PSFlag