diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 18:31:12 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 18:31:12 +1000 |
commit | deb96742e020be5e83314a5a28ddba3c96df6f6e (patch) | |
tree | 84a3e2fe6b0fd852c14a50a82a21c2b352291801 /source/game/StarWorldRenderData.hpp | |
parent | 1dacc0f41ad04a75e9fa3ca2bb6289aac57b68a7 (diff) |
Prevent particle copy, tweak debugging some more
probably not too time-saving
Diffstat (limited to 'source/game/StarWorldRenderData.hpp')
-rw-r--r-- | source/game/StarWorldRenderData.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/game/StarWorldRenderData.hpp b/source/game/StarWorldRenderData.hpp index b13fef5..6d8c3b1 100644 --- a/source/game/StarWorldRenderData.hpp +++ b/source/game/StarWorldRenderData.hpp @@ -30,7 +30,7 @@ struct WorldRenderData { Image tileLightMap; List<EntityDrawables> entityDrawables; - List<Particle> particles; + List<Particle> const* particles; List<OverheadBar> overheadBars; List<Drawable> nametags; @@ -48,10 +48,10 @@ struct WorldRenderData { }; inline void WorldRenderData::clear() { - tiles.clear(); + tiles.resize({0, 0}); // keep reserved entityDrawables.clear(); - particles.clear(); + particles = nullptr; overheadBars.clear(); nametags.clear(); backgroundOverlays.clear(); |