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:
ebaydayz
2016-12-04 14:18:37 -05:00
parent 7af0cb2910
commit 7ab09b9a9f

View File

@@ -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=",