From 8d0111f8c3ec5c44a487afab3f98bc15923cb6f8 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 15 Jan 2016 16:42:21 +0100 Subject: [PATCH] Fix bad printf parameters --- code/ryzom/tools/leveldesign/export/export.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/ryzom/tools/leveldesign/export/export.cpp b/code/ryzom/tools/leveldesign/export/export.cpp index b15e48a59..e140bfc3b 100644 --- a/code/ryzom/tools/leveldesign/export/export.cpp +++ b/code/ryzom/tools/leveldesign/export/export.cpp @@ -561,13 +561,13 @@ bool SExportOptions::loadcf (CConfigFile &cf) bool SExportOptions::save (FILE *f) { fprintf (f,"\n// Export Options\n"); - fprintf (f, "EXP_OutIGDir = \"%s\";\n", OutIGDir); - fprintf (f, "EXP_ZoneWDir = \"%s\";\n", InLandscapeDir); - fprintf (f, "EXP_SmallBank = \"%s\";\n", LandBankFile); - fprintf (f, "EXP_FarBank = \"%s\";\n", LandFarBankFile); - fprintf (f, "EXP_DisplaceDir = \"%s\";\n", LandTileNoiseDir); + fprintf (f, "EXP_OutIGDir = \"%s\";\n", OutIGDir.c_str()); + fprintf (f, "EXP_ZoneWDir = \"%s\";\n", InLandscapeDir.c_str()); + fprintf (f, "EXP_SmallBank = \"%s\";\n", LandBankFile.c_str()); + fprintf (f, "EXP_FarBank = \"%s\";\n", LandFarBankFile.c_str()); + fprintf (f, "EXP_DisplaceDir = \"%s\";\n", LandTileNoiseDir.c_str()); fprintf (f, "EXP_CellSize = %f;\n", CellSize); - fprintf (f, "EXP_PrimFloraDir = \"%s\";\n", PrimFloraDir); + fprintf (f, "EXP_PrimFloraDir = \"%s\";\n", PrimFloraDir.c_str()); return true; }