-
-
Notifications
You must be signed in to change notification settings - Fork 474
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Using engineSetModelLODDistance with engineRequestModel some times errors out because engineSetModelLODDistance seems to be clamped by (GetBaseIDforTXD) which in turn limits the max ID count to 19999 while engineRequestModel may sometimes push in the 20,000 or 30,000 range.
CLuaEngineDefs.cpp: 1098
if (usModelID < g_pGame->GetBaseIDforTXD())
seems to be the line causing faults.
Steps to reproduce
for i = 0,15000 do
local model = engineRequestModel('object')
engineSetModelLODDistance(model,500)
end
Version
No response
Additional context
No response
Relevant log output
Security Policy
- I have read and understood the Security Policy and this issue is not security related.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working