Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Core/Resources/Headers/ResourceCache.h

Diff revisions: vs.
  @@ -89,8 +89,9 @@
89 89 return ResourceCache::getInstance().loadResource<T>(descriptor);
90 90 }
91 91
92 - inline Resource* const FindResource(const std::string& name){
93 - return ResourceCache::getInstance().find(name);
92 + template<class T>
93 + inline T* const FindResource(const std::string& name){
94 + return static_cast<T*>(ResourceCache::getInstance().find(name));
94 95 }
95 96
96 97 #endif