mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix error with converted characters medical array
Select 12 actually selects the 13th item in an array, so the rh_factor line will error if the array is equal to twelve. This was responsible for some converted characters having a <null> value in the "rh_factor" slot of their medical array causing them to fail to save.
This commit is contained in:
@@ -110,7 +110,7 @@ if (count _medical > 0) then {
|
||||
_playerObj setVariable ["unconsciousTime",(_medical select 10),true];
|
||||
_playerObj setVariable ["messing",if (count _medical >= 14) then {(_medical select 13)} else {[0,0,0]},true];
|
||||
_playerObj setVariable ["blood_testdone",if (count _medical >= 15) then {(_medical select 14)} else {false},true];
|
||||
if (count _medical >= 12) then {
|
||||
if (count _medical > 12) then {
|
||||
_playerObj setVariable ["blood_type",(_medical select 11),true];
|
||||
_playerObj setVariable ["rh_factor",(_medical select 12),true];
|
||||
// diag_log [ "Character data: blood_type,rh_factor,testdone=",
|
||||
|
||||
Reference in New Issue
Block a user