Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldRenderData.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarWorldRenderData.hpp')
-rw-r--r--source/game/StarWorldRenderData.hpp6
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();