From b0d1c0dbfb4be5fcb45f14f8b46d1087cb57b9c7 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sat, 9 Aug 2025 20:09:13 -0400 Subject: [PATCH] Use fmtlib for Capture Soul message --- src/game/boe.monster.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/boe.monster.cpp b/src/game/boe.monster.cpp index 4d9b160ff..5db2d17b2 100644 --- a/src/game/boe.monster.cpp +++ b/src/game/boe.monster.cpp @@ -1,5 +1,6 @@ #include +#include #include "boe.global.hpp" @@ -1107,7 +1108,7 @@ void record_monst(cCreature* which_m, bool forced) { univ.party.imprisoned_monst[r1] = which_m->number; } ASB("Capture Soul: Success!"); - add_string_to_buf(" Caught in slot " + std::to_string(r1 + 1) + "."); + add_string_to_buf(fmt::format(" Caught in slot {}.", r1 + 1)); play_sound(53); } }