summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-19 22:56:54 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-19 22:56:54 +0100
commit3d06561d3fc5938cab28eaa69b50aaa774193b93 (patch)
tree565f9dfc52fa25d3a20160a50bbca77f4c9b9950 /src/common.hpp
parent9628c2c097b10f22aafd4890ab8e98375b5740da (diff)
Fix camera center not being iniitialized.
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp2
1 files changed, 1 insertions, 1 deletions
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;