Browse Source

resource: fix build

Daniele Bartolini 5 năm trước cách đây
mục cha
commit
72edf6daca
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/resource/resource_id.cpp

+ 1 - 1
src/resource/resource_id.cpp

@@ -13,7 +13,7 @@ namespace crown
 {
 {
 ResourceId resource_id(const char* path)
 ResourceId resource_id(const char* path)
 {
 {
-	CE_ASSERT(path::extension(path) != NULL);
+	CE_ENSURE(path::extension(path) != NULL);
 	const char* type = path::extension(path);
 	const char* type = path::extension(path);
 	const u32 len = u32(type - path - 1);
 	const u32 len = u32(type - path - 1);
 	return resource_id(type, strlen32(type), path, len);
 	return resource_id(type, strlen32(type), path, len);