summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-08 09:33:55 +0100
committerskal <pascal.massimino@gmail.com>2026-03-08 09:33:55 +0100
commitdeecfe84810cb1915d66474978f845c885bfa576 (patch)
treef9b68b1752fd1c38db058d93745b44beb4cd15db
parenta2f0f7c7a45ba8b30984fb135b8b54f11fb119f8 (diff)
fix: Resolve compile error in GetAssetType
Replaced the deleted 'AssetType::STATIC' with 'AssetType::BINARY' as the default return value for invalid asset IDs.
-rw-r--r--src/util/asset_manager.cc2
1 files changed, 1 insertions, 1 deletions
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;
}