Explorar el Código

Fixed ResourceCache error messages.

Lasse Öörni hace 14 años
padre
commit
3f1f71dd06
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      Engine/Container/HashMap.h
  2. 2 2
      Engine/Resource/ResourceCache.cpp

+ 1 - 1
Engine/Container/HashMap.h

@@ -219,7 +219,7 @@ public:
             InsertNode(it->first_, it->second_);
     }
     
-    /// Insert a key by iterator. Return iterator to the value
+    /// Insert a pair by iterator. Return iterator to the value
     Iterator Insert(const ConstIterator& it)
     {
         return Iterator(InsertNode(it->first_, it->second_));

+ 2 - 2
Engine/Resource/ResourceCache.cpp

@@ -359,7 +359,7 @@ Resource* ResourceCache::GetResource(ShortStringHash type, StringHash nameHash)
     const String& name = GetResourceName(nameHash);
     if (name.Empty())
     {
-        LOGERROR("Could not load unknown resource " + nameHash);
+        LOGERROR("Could not load unknown resource " + String(nameHash));
         return 0;
     }
     
@@ -367,7 +367,7 @@ Resource* ResourceCache::GetResource(ShortStringHash type, StringHash nameHash)
     resource = DynamicCast<Resource>(context_->CreateObject(type));
     if (!resource)
     {
-        LOGERROR("Could not load unknown resource type " + type);
+        LOGERROR("Could not load unknown resource type " + String(type));
         return 0;
     }