mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-29 10:31:34 +00:00
* Fixes runtime with serializing photo metadata (#83562) ## About The Pull Request So while working on an entirely unrelated thing, I noticed runtimes appearing in my logs after taking a picture. Specifically a bad index runtime for the 77th line here:2f6920105e/code/modules/photography/_pictures.dm (L66-L78)And the 199th line here:2f6920105e/code/datums/datum.dm (L193-L200)This seemed to be caused by the fact `serialize_list(...)` is called with a null `semvers` parameter, which then causes it to try to add to a null list. I asked about this in code general on the main discord, and got told just putting an empty list in when `serialize_list(...)` is called should be fine. This resolves the runtime. ## Why It's Good For The Game Better to not have two runtimes added to the logs whenever someone takes a picture. Fixes #80514. * Fixes runtime with serializing photo metadata --------- Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com>