Skip to content

Commit

Permalink
Medical API - Fix duplicate toLowerANSI on wound getters
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkIsGrim committed Dec 15, 2024
1 parent 6ddd020 commit 2a819a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_getOpenWounds.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ private _openWounds = [];
if (_xAmount > 0) then { // bandaged wounds are open wounds with count 0, skip those
_openWounds pushBack +_x; // manual deep copy so modification doesn't affect unit state
};
} forEach (GET_OPEN_WOUNDS(_patient) getOrDefault [toLowerANSI _bodyPart, []]);
} forEach (GET_OPEN_WOUNDS(_patient) getOrDefault [_bodyPart, []]);

_openWounds
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_getStitchedWounds.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ private _stitchedWounds = [];

{
_stitchedWounds pushBack +_x; // manual deep copy so modification doesn't affect unit state
} forEach (GET_STITCHED_WOUNDS(_patient) getOrDefault [toLowerANSI _bodyPart, []]);
} forEach (GET_STITCHED_WOUNDS(_patient) getOrDefault [_bodyPart, []]);

_stitchedWounds

0 comments on commit 2a819a6

Please sign in to comment.