get_asset_id will now return 0 if it fails to find the given asset
This commit is contained in:
		
							parent
							
								
									883d72ff99
								
							
						
					
					
						commit
						aa7f76e8a2
					
				|  | @ -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) { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Sara
						Sara