summaryrefslogtreecommitdiff
path: root/src/cmd4.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-02-05 19:22:46 +0100
committerBardur Arantsson <bardur@scientician.net>2016-02-05 19:22:46 +0100
commit5cecddb28bf224e06fc062ed430dd8322b2d3cff (patch)
tree346e26505e6db366d4d99a7dc3575b494244390a /src/cmd4.cc
parent0626333610e343551f88778320a04836f2d2b406 (diff)
Make get_day() return std::string
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.",