Reference to src being replaced when ChangeTurf() is called #15888
-
Posted this on discord but posting again here so it won't get lost as easily. Given a list which currently contains a reference to the Somehow, during the Gif for a visual explanation: I haven't modified any existing turf related code on my branch, and in fact, this issue happens on master as well with no code additions. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
http://www.byond.com/docs/ref/#/turf
You also can't move or new/delete them normally. So it makes sense that byond will reuse the reference |
Beta Was this translation helpful? Give feedback.
-
What @farie82 said is correct. You can't really "delete" a turf, per se, only replace an instance of it; this is why calling Areas, IIRC, function pretty much the exact same way. |
Beta Was this translation helpful? Give feedback.
-
Yep, that checks out, thanks guys. |
Beta Was this translation helpful? Give feedback.
http://www.byond.com/docs/ref/#/turf
There it suggests that if you new a turf with as param the old one that it will replace the old one.
You also can't move or new/delete them normally. So it makes sense that byond will reuse the reference