Airway - Fix handleAirway for "not isUnconscious" unit #781
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When merged this pull request will:
This is a rare case and it is unclear whether this is a result of processing being accelerated by the latest 2.20 update.
But handleAirway would be executed by "treatmentAdvanced_RemoveAirwayItem" after (almost same timing with) a unit had woken up from unconscious, and this sometime causing obstruction in the airway of the awake unit then unconscious by low oxygen.
In handlePunking, the "isUnconscious" check exists for the loop, but handleAirway which has no loop processing so does not have check, so depending on the timing of execution the handleAirway, variable would be set to an incorrect value, and this is avoided by a double check.
Reported Issue: https://discord.com/channels/528955370941579265/1389725505019838566
IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}.