From c984afdf47ef31511024c6b70bd4b4c4e64f56a6 Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Sat, 8 Jul 2023 23:30:25 +0500 Subject: Fixed some errors detected by static analysis --- src/Render.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Render.hpp') diff --git a/src/Render.hpp b/src/Render.hpp index 3ac76e3..a0e5b96 100644 --- a/src/Render.hpp +++ b/src/Render.hpp @@ -28,8 +28,8 @@ class Render { bool renderGui = false; bool isMouseCaptured = false; - int prevMouseX, prevMouseY; - float mouseXDelta, mouseYDelta; + int prevMouseX=0, prevMouseY=0; + float mouseXDelta=0.0f, mouseYDelta=0.0f; std::unique_ptr world; bool renderWorld = false; size_t windowWidth, windowHeight; @@ -76,7 +76,7 @@ class Render { void InitRml(); public: - Render(unsigned int windowWidth, unsigned int windowHeight, std::string windowTitle); + Render(unsigned int width, unsigned int height, std::string title); ~Render(); void Update(); -- cgit v1.2.3