From f364a75c082beed87dba04261650e5e5a412bd57 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Oct 2016 20:50:59 +0300 Subject: Improve sound db unload. --- src/resources/db/sounddb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/db/sounddb.cpp b/src/resources/db/sounddb.cpp index 3268a3e9c..4a4b7cd08 100644 --- a/src/resources/db/sounddb.cpp +++ b/src/resources/db/sounddb.cpp @@ -85,7 +85,7 @@ void SoundDB::unload() { mSounds.resize(NotifyTypes::TYPE_END); for (int f = 0; f < NotifyTypes::TYPE_END; f ++) - mSounds[f] = ""; + mSounds[f].clear(); } std::string &SoundDB::getSound(const int id) -- cgit v1.2.3-60-g2f50