From 3d06561d3fc5938cab28eaa69b50aaa774193b93 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 19 Dec 2017 22:56:54 +0100 Subject: Fix camera center not being iniitialized. --- src/common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.hpp b/src/common.hpp index 656a370..7221b44 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -266,7 +266,7 @@ namespace interface { float em; struct { - v2f_t center; + v2f_t center = v2f_t(0, 0); int target_zoom = 3; float zoom = 3.0f; bool panning = false; -- cgit