summaryrefslogtreecommitdiff
path: root/src/loadsave.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/loadsave.cc')
-rw-r--r--src/loadsave.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/loadsave.cc b/src/loadsave.cc
index a085283d..5968e7c5 100644
--- a/src/loadsave.cc
+++ b/src/loadsave.cc
@@ -1905,8 +1905,10 @@ static void do_message(message &msg, ls_flag_t flag)
*/
static void do_messages(ls_flag_t flag)
{
+ auto &messages = game->messages;
+
/* Save/load number of messages */
- s16b num = message_num();
+ s16b num = messages.size();
do_s16b(&num, flag);
/* Read the messages */
@@ -1916,14 +1918,14 @@ static void do_messages(ls_flag_t flag)
if (flag == ls_flag_t::SAVE)
{
- message = message_at(i);
+ message = messages.at(i);
}
do_message(message, flag);
if (flag == ls_flag_t::LOAD)
{
- message_add(message);
+ messages.add(message);
}
}
}