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++;