Commit 41be600
committed
dont find entities which are marked for deletion
was leading to vscript crashes in a typical while find entity loop especially if ran every tick. entity would be marked for deletion and deemed invalid with IsValid function, but the find function would resurrect it in the same tick, then trying to use the resurrected handle shortly afterwards would crash the game. Also now doing Destroy in the typical while find loop is fine1 parent 4bb0be7 commit 41be600
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
602 | 605 | | |
603 | 606 | | |
604 | 607 | | |
| |||
727 | 730 | | |
728 | 731 | | |
729 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
730 | 736 | | |
731 | 737 | | |
732 | 738 | | |
| |||
788 | 794 | | |
789 | 795 | | |
790 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
791 | 800 | | |
792 | 801 | | |
793 | 802 | | |
| |||
818 | 827 | | |
819 | 828 | | |
820 | 829 | | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
821 | 833 | | |
822 | 834 | | |
823 | 835 | | |
| |||
890 | 902 | | |
891 | 903 | | |
892 | 904 | | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
893 | 908 | | |
894 | 909 | | |
895 | 910 | | |
| |||
0 commit comments