Skip to content

Medical - ace_fnc_serializeState modifies medications arrayΒ #11308

@some-evil-kitty

Description

@some-evil-kitty

Mods (complete and add to the following information):

  • Arma 3: 2.20.153586
  • CBA: 3.20.2
  • ACE3: 3.18.5

Description:
Running ace_fnc_serializeState on a unit will modify the "timeAdded" number in each of the medications in the medications array.

Steps to reproduce:

Monitor "ace_medical_medications" on unit with some medication running (morphine, etc). Run ace_medical_fnc_serializeState on the unit. Take note of changed timestamp before medications are cleaned up and array is cleared.

Expected behavior:

ace_medical_fnc_serializeState should simply return the json string and not alter the unit.

Where did the issue occur?

  • Reproduced in singleplayer, originally noticed in multiplayer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions