diff engine/core/util/resource/resource.i @ 156:376b8afc9a18

Fixed a horrendous misconeception in the pool. The map was sorted by pointer comparison. Needs a bit cleanup, though.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 12 Oct 2008 20:30:09 +0000
parents 679ed3e15513
children b84dbc4665b0
line wrap: on
line diff
--- a/engine/core/util/resource/resource.i	Sun Oct 12 19:23:10 2008 +0000
+++ b/engine/core/util/resource/resource.i	Sun Oct 12 20:30:09 2008 +0000
@@ -85,7 +85,7 @@
 		static const int INVALID_ID = -1;
 		virtual ~Pool();
 		virtual int addResourceFromFile(const std::string& filename);
-		virtual int addResourceFromLocation(const ResourceLocation& loc);
+		virtual int addResourceFromLocation(ResourceLocation* loc);
 		virtual int getResourceCount(int status);
 		virtual int purgeLoadedResources();
 		virtual void addResourceLoader(ResourceLoader* loader);