summaryrefslogtreecommitdiff
path: root/src/cmd4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd4.cc')
-rw-r--r--src/cmd4.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd4.cc b/src/cmd4.cc
index 4b6c040c..56728a86 100644
--- a/src/cmd4.cc
+++ b/src/cmd4.cc
@@ -4267,9 +4267,10 @@ void do_cmd_time()
strcpy(desc, "It is a strange time.");
/* Display day */
- u32b days = bst(DAY, turn) + 1;
+ auto days = bst(DAY, turn) + 1;
+ auto days_str = get_day(days);
msg_format("This is the %s day of your adventure.",
- get_day(days));
+ days_str.c_str());
/* Message */
msg_format("The time is %d:%02d %s.",