Преглед на файлове

resource: resource path must have extension

Daniele Bartolini преди 5 години
родител
ревизия
d4e93436c5
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/resource/resource_id.cpp

+ 1 - 0
src/resource/resource_id.cpp

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