From 4645d1837d1fdc4e9ef5442c746eaec0e64054d7 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 14 Dec 2019 11:12:15 +0800 Subject: [PATCH] Fix tool build --- code/ryzom/tools/leveldesign/mp_generator/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/ryzom/tools/leveldesign/mp_generator/main.cpp b/code/ryzom/tools/leveldesign/mp_generator/main.cpp index 267f6a4ab..150807f5c 100644 --- a/code/ryzom/tools/leveldesign/mp_generator/main.cpp +++ b/code/ryzom/tools/leveldesign/mp_generator/main.cpp @@ -307,6 +307,11 @@ bool endsWith( const CSString& s, const CSString& substring ) return (s.right( (uint)substring.size() ) == substring); } +bool endsWith( const CSString& s, const char *substring ) +{ + return endsWith(s, CSString(substring)); +} + // Generate item names void GenerateItemNames( const CSString& nomMP, char eco, int level, bool mission, bool creature, CSString& outStr )