From 415dc7fc2ba658a13a30d633c6c87fff26cb5e5e Mon Sep 17 00:00:00 2001 From: Meoweg Date: Wed, 11 Nov 2015 21:12:57 +0000 Subject: [PATCH] Fix error --- src/store.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.hpp b/src/store.hpp index ac6df4e..1fa6a91 100644 --- a/src/store.hpp +++ b/src/store.hpp @@ -24,7 +24,7 @@ const T *Store::load(const std::string &name) && !std::is_same::value, "Store can load only Resource's children"); - if (_resources.find(name) == _resources.end()) + if (_resources.find(T::filename(name)) == _resources.end()) _resources[T::filename(name)] = new T(*this, name); _resources[T::filename(name)]->_ref_count++;