diff --git a/addons/sitting/functions/fnc_getRandomAnimation.sqf b/addons/sitting/functions/fnc_getRandomAnimation.sqf index 65249f24f6..c83d230a90 100644 --- a/addons/sitting/functions/fnc_getRandomAnimation.sqf +++ b/addons/sitting/functions/fnc_getRandomAnimation.sqf @@ -15,6 +15,8 @@ */ #include "script_component.hpp" +private ["_animations"]; + // Animations Pool _animations = [ "HubSittingChairUA_idle1", diff --git a/addons/sitting/functions/fnc_sit.sqf b/addons/sitting/functions/fnc_sit.sqf index 0edaffb1a4..b144653d02 100644 --- a/addons/sitting/functions/fnc_sit.sqf +++ b/addons/sitting/functions/fnc_sit.sqf @@ -25,6 +25,7 @@ GVAR(seat) = _seat; _player switchMove "amovpknlmstpsraswrfldnon"; // Read config +private ["_sitDirection", "_sitPosition"]; _sitDirection = getNumber (configFile >> "CfgVehicles" >> typeOf _seat >> QGVAR(sitDirection)); _sitPosition = getArray (configFile >> "CfgVehicles" >> typeOf _seat >> QGVAR(sitPosition));