From 540f976c5f0fcee4fbf0edfdace246f4a3588f65 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 6 Dec 2016 23:33:58 +0200 Subject: [PATCH] Initialize View::camera to null So it doesn't crash when used without a camera. --- source/view.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/view.cpp b/source/view.cpp index cd759e48..115a4b0c 100644 --- a/source/view.cpp +++ b/source/view.cpp @@ -13,6 +13,7 @@ View::View(Graphics::Window &w, Graphics::GLContext &c): window(w), context(c), target(Framebuffer::system()), + camera(0), content(0) { window.signal_resize.connect(sigc::mem_fun(this, &View::window_resized)); -- 2.43.0