summaryrefslogtreecommitdiff
path: root/src/mmo/strs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mmo/strs.cpp')
-rw-r--r--src/mmo/strs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mmo/strs.cpp b/src/mmo/strs.cpp
index 71dceec..d780702 100644
--- a/src/mmo/strs.cpp
+++ b/src/mmo/strs.cpp
@@ -18,9 +18,15 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
+#include "../io/cxxstdio.hpp"
+
#include "../poison.hpp"
namespace tmwa
{
+VString<49> convert_for_printf(NpcEvent ev)
+{
+ return STRNPRINTF(50, "%s::%s"_fmt, ev.npc, ev.label);
+}
} // namespace tmwa