|
From: Tapio V. <aa...@us...> - 2012-01-31 11:46:29
|
Author: Tapio Vierros <tap...@gm...>
Date: Tue Jan 31 13:00:11 2012 +0200
Fixed a bug in getThemePath.
---
game/fs.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/fs.cc b/game/fs.cc
index 767a7ab..545206e 100644
--- a/game/fs.cc
+++ b/game/fs.cc
@@ -122,7 +122,7 @@ std::string getThemePath(std::string const& filename) {
if (theme.empty()) theme = defaultTheme;
// Try current theme and if that fails, try default theme and finally data dir
try { return getPath(fs::path("themes") / theme / filename); } catch (std::runtime_error&) {}
- if (theme == defaultTheme) try { return getPath(fs::path("themes") / defaultTheme / filename); } catch (std::runtime_error&) {}
+ if (theme != defaultTheme) try { return getPath(fs::path("themes") / defaultTheme / filename); } catch (std::runtime_error&) {}
return getPath(filename);
}
|