summaryrefslogtreecommitdiff
path: root/src/msgbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/msgbox.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/msgbox.cpp b/src/msgbox.cpp
index 9a5fb25..968b607 100644
--- a/src/msgbox.cpp
+++ b/src/msgbox.cpp
@@ -279,7 +279,10 @@ daEnMsgBlock_c *daEnMsgBlock_c::build() {
void daEnMsgBlock_c::blockWasHit(bool isDown) {
pos.y = initialY;
- dMsgBoxManager_c::instance->showMessage(settings);
+ if (dMsgBoxManager_c::instance)
+ dMsgBoxManager_c::instance->showMessage(settings);
+ else
+ Delete(false);
physics.setup(this, &physicsInfo, 3, currentLayerID);
physics.addToList();