Jelajahi Sumber

Fix ResourceId::operator==()

Daniele Bartolini 12 tahun lalu
induk
melakukan
32dd2e82b5
1 mengubah file dengan 1 tambahan dan 4 penghapusan
  1. 1 4
      engine/resource/Resource.h

+ 1 - 4
engine/resource/Resource.h

@@ -66,10 +66,7 @@ struct ResourceId
 	uint32_t		type;		// Hashed resource type
 	uint32_t		index;		// Index into the ResourceManager internal list
 
-	bool			operator==(const ResourceId& b)
-	{
-		return name == b.name && type == b.type && index == b.index;
-	}
+	bool operator==(const ResourceId& b) { return name == b.name && type == b.type; }
 };
 
 } // namespace crown