mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
fix: validate displayId range and skip missing equipment textures
Reject displayId values >100k (corrupted update-field data) to avoid pointless DBC lookups and log spam. Add fileExists() guard before using base texture path in 4 equipment compositing code paths that were falling through without checking, causing excessive "Texture not found" warnings when users have incomplete MPQ extractions.
This commit is contained in:
parent
2f3a973444
commit
83eef878fb
4 changed files with 18 additions and 5 deletions
|
|
@ -315,9 +315,10 @@ void GameScreen::updateCharacterTextures(game::Inventory& inventory) {
|
|||
fullPath = genderPath;
|
||||
} else if (assetManager->fileExists(unisexPath)) {
|
||||
fullPath = unisexPath;
|
||||
} else {
|
||||
// Last resort: try without suffix
|
||||
} else if (assetManager->fileExists(base + ".blp")) {
|
||||
fullPath = base + ".blp";
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
regionLayers.emplace_back(region, fullPath);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue