From 1d208821593eb4da0ea6bd801454be4535312e3a Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 22 Sep 2012 05:18:52 +0200 Subject: quick fix for the HUD --- src/koopatlas/hud.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp index cd52beb..5fe8072 100644 --- a/src/koopatlas/hud.cpp +++ b/src/koopatlas/hud.cpp @@ -120,10 +120,14 @@ int dWMHud_c::onDraw() { void dWMHud_c::playShowHeaderAnim() { + if (!this || !this->layoutLoaded) return; + layout.enableNonLoopAnim(SHOW_HEADER); } void dWMHud_c::playHideHeaderAnim() { + if (!this || !this->layoutLoaded) return; + if (!layout.isAnimOn(SHOW_HEADER)) { layout.enableNonLoopAnim(SHOW_HEADER, true); } -- cgit v1.2.3