From cec167477de8afcb53c2f0b18c3453e1599eb980 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sat, 23 Nov 2024 19:52:15 +0100 Subject: Fixing PR --- src/crepe/system/RenderSystem.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/crepe/system') diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp index 8f9467e..ad510f5 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -28,8 +28,6 @@ void RenderSystem::update_camera() { if (cameras.size() == 0) throw std::runtime_error("No cameras in current scene"); - if (cameras.size() == 0) throw std::runtime_error("No cameras in current scene"); - for (Camera & cam : cameras) { if (!cam.active) continue; this->context.set_camera(cam); -- cgit v1.2.3