summaryrefslogtreecommitdiff
path: root/src/system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.cc')
-rw-r--r--src/system.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/system.cc b/src/system.cc
index fdf3e4d..d8c27ab 100644
--- a/src/system.cc
+++ b/src/system.cc
@@ -90,6 +90,9 @@ void System::initialize()
void System::loadPattern(uint8_t anim_no)
{
+ if (!storage.hasData())
+ return;
+
storage.load(anim_no, disp_buf);
active_anim.type = (AnimationType)(disp_buf[0] >> 4);