diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-08 09:33:55 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-08 09:33:55 +0100 |
| commit | deecfe84810cb1915d66474978f845c885bfa576 (patch) | |
| tree | f9b68b1752fd1c38db058d93745b44beb4cd15db /src/util | |
| parent | a2f0f7c7a45ba8b30984fb135b8b54f11fb119f8 (diff) | |
fix: Resolve compile error in GetAssetType
Replaced the deleted 'AssetType::STATIC' with 'AssetType::BINARY' as the default return value for invalid asset IDs.
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/asset_manager.cc | 2 |
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; } |
