summaryrefslogtreecommitdiff
path: root/src/story_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/story_gui.cpp')
-rw-r--r--src/story_gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp
index 9f84e57b0..872ed0a9a 100644
--- a/src/story_gui.cpp
+++ b/src/story_gui.cpp
@@ -519,8 +519,10 @@ public:
int y_offset = - this->vscroll->GetPosition();
/* Date */
- SetDParam(0, page->date);
- DrawString(0, right - x, y_offset, STR_JUST_DATE_LONG, TC_BLACK);
+ if (page->date != INVALID_DATE) {
+ SetDParam(0, page->date);
+ DrawString(0, right - x, y_offset, STR_JUST_DATE_LONG, TC_BLACK);
+ }
y_offset += line_height;
/* Title */