Skip to content

Commit

Permalink
fix type conversion warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 committed Sep 18, 2023
1 parent 981f1b6 commit 208f7bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playsim/p_effect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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
Expand Down

0 comments on commit 208f7bd

Please sign in to comment.