Fix TpvScene3D.TLight.BeforeDestruction #53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "michaliskambi/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code in
TpvScene3D.TLight.BeforeDestructionwas accidentally doingwhen
fIndexis obviously -1 (set to -1 byfinallyclause a few lines higher).This was causing range check errors when destroying certain animals in our game:)
It seems that it's a copy-paste error, the code under
if fManualIndex>=0 then beginseems mostly a copy-paste of the code underif fIndex>=0 then begin, you possibly copied it and didn't adjust all occurences offIndex->fManualIndex?Tested the solution on our game, and destroying some animals crashes no more:)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.