From deecfe84810cb1915d66474978f845c885bfa576 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 8 Mar 2026 09:33:55 +0100 Subject: fix: Resolve compile error in GetAssetType Replaced the deleted 'AssetType::STATIC' with 'AssetType::BINARY' as the default return value for invalid asset IDs. --- src/util/asset_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util/asset_manager.cc b/src/util/asset_manager.cc index 52a60ee..6cad083 100644 --- a/src/util/asset_manager.cc +++ b/src/util/asset_manager.cc @@ -257,6 +257,6 @@ bool ReloadAssetsFromFile(const char* config_path) { AssetType GetAssetType(AssetId asset_id) { uint16_t index = (uint16_t)asset_id; if (index >= (uint16_t)AssetId::ASSET_LAST_ID) - return AssetType::STATIC; + return AssetType::BINARY; return GetAssetRecordTable()[index].type; } -- cgit v1.2.3