aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/RenderSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/RenderSystem.cpp')
-rw-r--r--src/crepe/RenderSystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/RenderSystem.cpp b/src/crepe/RenderSystem.cpp
index b5503d3..b8789fc 100644
--- a/src/crepe/RenderSystem.cpp
+++ b/src/crepe/RenderSystem.cpp
@@ -32,11 +32,11 @@ void RenderSystem::update() {
render.clear_screen();
for (const Sprite & sprite : sprites) {
- std::vector<std::reference_wrapper<Transform>> transforms = mgr.get_components_by_id<Transform>(sprite.gameObjectId);
- for (const Transform& transform : transforms) {
+ std::vector<std::reference_wrapper<Transform>> transforms
+ = mgr.get_components_by_id<Transform>(sprite.game_object_id);
+ for (const Transform & transform : transforms) {
render.draw(sprite, transform);
}
-
}
render.present_screen();
}