From 3fc8a264b5d48b83629134b19a493340e1da73b9 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 --- 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); } };