Skip to content

Commit

Permalink
fix weapons models not precached
Browse files Browse the repository at this point in the history
  • Loading branch information
wootguy committed Nov 5, 2024
1 parent 1d2ba78 commit 1de871f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlls/eng_wrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ const char* GET_MODEL(const char* model) {
model = g_modelReplacements[lowerPath].c_str();
}

if (g_precachedModels.find(model) == g_precachedModels.end()) {
model = NOT_PRECACHED_MODEL;
if (g_precachedModels.find(lowerPath) == g_precachedModels.end()) {
return NOT_PRECACHED_MODEL;
}

return model;
Expand Down

0 comments on commit 1de871f

Please sign in to comment.