From b21fe2045991c7cf2d9b8d607d22ad4920cc9e1e Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 28 Mar 2014 10:51:48 +0100 Subject: [PATCH] Buildfix --- src/sizenotifiable.cpp | 4 +--- src/sizenotifiable.hpp | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sizenotifiable.cpp b/src/sizenotifiable.cpp index f600379..c942fa0 100644 --- a/src/sizenotifiable.cpp +++ b/src/sizenotifiable.cpp @@ -3,7 +3,6 @@ #include "sdlmain.hpp" #include #include -#include namespace cloonel { namespace implem { @@ -28,8 +27,7 @@ namespace cloonel { assert(m_registered or not m_sdlmain); m_registered = false; #endif - if (m_registered) { - assert(m_sdlmain); + if (m_sdlmain) { m_sdlmain->UnregisterForResChange(m_id); } } diff --git a/src/sizenotifiable.hpp b/src/sizenotifiable.hpp index 27fdc11..c6382fb 100644 --- a/src/sizenotifiable.hpp +++ b/src/sizenotifiable.hpp @@ -22,6 +22,7 @@ #include "vector.hpp" #include +#include namespace cloonel { class SizeRatio;