From 3a004a0912b2cce3f8d51c6718a552d7813d443c Mon Sep 17 00:00:00 2001 From: milek7 Date: Sat, 19 Aug 2017 19:05:41 +0200 Subject: [PATCH] search sounds also in root --- sound.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound.cpp b/sound.cpp index 490f4442..d80a0aeb 100644 --- a/sound.cpp +++ b/sound.cpp @@ -86,6 +86,8 @@ sound_buffer* sound_manager::get_buffer(std::string const &name) std::string file = find_file(Global::asCurrentDynamicPath + name); if (!file.size()) file = find_file("sounds/" + name); + if (!file.size()) + file = find_file(name); if (!file.size()) throw load_error(name);