1
0
Fork 0

Fix error

This commit is contained in:
Meoweg 2015-11-11 21:12:57 +00:00
parent 62b5418410
commit 415dc7fc2b

View file

@ -24,7 +24,7 @@ const T *Store::load(const std::string &name)
&& !std::is_same<T, Resource>::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++;