get_asset_id will now return 0 if it fails to find the given asset

This commit is contained in:
Sara 2023-10-06 23:44:43 +02:00
parent 883d72ff99
commit aa7f76e8a2

View file

@ -135,7 +135,7 @@ asset_id get_asset_id(void* asset) {
}
}
RETURN_WARNING(NULL, "Failed to find asset referencing %p", asset);
RETURN_WARNING(0, "Failed to find asset referencing %p", asset);
}
void free_asset(asset_id id) {