summaryrefslogtreecommitdiff
path: root/src/koopatlas/hud.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/hud.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}