From b8d7b685f55e4a4fc1419ebc98e263ea73f2b229 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 13 Jan 2016 19:43:46 +0100 Subject: [PATCH] Fixed: Save filenames in .bank with / instead of system separator --- code/nel/include/nel/3d/tile_bank.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/nel/include/nel/3d/tile_bank.h b/code/nel/include/nel/3d/tile_bank.h index 00e0f2cae..32a205e6d 100644 --- a/code/nel/include/nel/3d/tile_bank.h +++ b/code/nel/include/nel/3d/tile_bank.h @@ -20,6 +20,7 @@ #include "nel/misc/debug.h" #include "nel/misc/stream.h" #include "nel/misc/rgba.h" +#include "nel/misc/path.h" #include #include #include @@ -82,8 +83,8 @@ public: // not free _Flags&=~NL3D_CTILE_FREE_FLAG; - // set filename - _BitmapName[bitmapType]=name; + // set filename, replacing \\ by / if needed + _BitmapName[bitmapType] = NLMISC::CPath::standardizePath(name, false); } std::string getFileName (TBitmap bitmapType) const