lumberyard icon indicating copy to clipboard operation
lumberyard copied to clipboard

Bugfix net binding destroying random entities

Open CDufour909 opened this issue 5 years ago • 2 comments

When a client is deleting netbound entities (for which he is not the authority), this leaves the NetBinding system with pointers to invalid entities in the m_boundEntities. Causing either crashes or deletion of random entities when the authority actually signals destruction of the netreplicated slice.

To remedy this issue, I'm changingthe m_boundEntities vector contents from Entity pointers to Entity Ids.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

CDufour909 avatar Jun 29 '20 19:06 CDufour909

Thanks for the fix @CDufour909 ! We're looking over the change and will update this pull request as the status changes.

AMZN-alexpete avatar Jun 29 '20 20:06 AMZN-alexpete

Hey @AMZN-alexpete, Been using this code for a couple of days and found a bug where authority deleting a single entity in a slice deleting another entity in the same slice instead. So I just updated the PR to include that fix.

CDufour909 avatar Jul 16 '20 02:07 CDufour909