From a57881561be9cbb1918b6a160165aca5caf9a43e Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 4 Jun 2012 13:28:03 +0200 Subject: [PATCH] Fixed: Bad serialization of sound name in background sounds --HG-- branch : sound_dev --- code/nel/include/nel/sound/background_sound.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/code/nel/include/nel/sound/background_sound.h b/code/nel/include/nel/sound/background_sound.h index 54e91e712..bf83f0413 100644 --- a/code/nel/include/nel/sound/background_sound.h +++ b/code/nel/include/nel/sound/background_sound.h @@ -69,17 +69,7 @@ public: void serial(NLMISC::IStream &s) { - std::string soundName; - if (s.isReading()) - { - s.serial(soundName); - SoundName = NLMISC::CSheetId(soundName);/*NLMISC::CStringMapper::map(soundName)*/; - } - else - { - soundName = SoundName.toString();/* NLMISC::CStringMapper::unmap(SoundName)*/; - s.serial(soundName); - } + SoundName.serialString(s, "sound"); s.serial(Filter); } };