소스 검색

Fixed ResourceCache error messages.

Lasse Öörni 14 년 전
부모
커밋
3f1f71dd06
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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;
     }