Skip to content

Commit

Permalink
fix RequestModel
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij committed Jul 27, 2024
1 parent 8f19ae3 commit cc692bf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Client/mods/deathmatch/logic/CResourceModelStreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ bool CResourceModelStreamer::RequestModel(uint16_t modelId, bool addRef, bool bl
}
else
{
model->Request(blocking ? EModelRequestType::BLOCKING : EModelRequestType::NON_BLOCKING, "CResourceModelStreamer::RequestModel With out reference");
return true;
if (model->IsLoaded())
{
return false;
}
else
{
model->Request(blocking ? EModelRequestType::BLOCKING : EModelRequestType::NON_BLOCKING, "CResourceModelStreamer::RequestModel With out reference");
return true;
}
}
}

Expand Down

0 comments on commit cc692bf

Please sign in to comment.