mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix dayz_nutrition RPT error on login
Looks like the error was:
r_player_Nutrition = [_NutritionLoss];
It should have used the set command, since the array was already defined
in variables.sqf. But there is no need to use an array for a single
value anyway.
Fixes RPT error on login:
Error in expression <hyd"] spawn player_death;
};
};
if (dayz_nutrition > 0) then {
_Nutrition = >
Error position: <dayz_nutrition > 0) then {
_Nutrition = >
Error Undefined variable in expression: dayz_nutrition
File z\addons\dayz_code\system\player_spawn_2.sqf, line 182
This commit is contained in:
@@ -314,7 +314,7 @@ carryClick = false;
|
||||
dayz_workingInprogress = false;
|
||||
|
||||
//INT Nutrition Info
|
||||
r_player_Nutrition = [0]; //[Calories]
|
||||
r_player_Nutrition = 0; // Calories
|
||||
r_player_nutritionMuilpty = 2;
|
||||
|
||||
//count actions
|
||||
|
||||
Reference in New Issue
Block a user