mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix #5081
The default values of the arrays manipulated by these functions overwrite any changes applied before settings have finished initalising. This won't be an issue after #4456 is merged in future.
This commit is contained in:
parent
1ff6e820b2
commit
6394f2b975
@ -21,6 +21,10 @@
|
|||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
if !(EGVAR(common,settingsInitFinished)) exitWith {
|
||||||
|
EGVAR(common,runAtSettingsInitialized) pushBack [DFUNC(updateCameraModes),_this];
|
||||||
|
};
|
||||||
|
|
||||||
params [["_addModes",[],[[]]], ["_removeModes",[],[[]]]];
|
params [["_addModes",[],[[]]], ["_removeModes",[],[[]]]];
|
||||||
private ["_newModes","_currentModes"];
|
private ["_newModes","_currentModes"];
|
||||||
|
|
||||||
|
@ -29,6 +29,10 @@
|
|||||||
|
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
if !(EGVAR(common,settingsInitFinished)) exitWith {
|
||||||
|
EGVAR(common,runAtSettingsInitialized) pushBack [DFUNC(updateVisionModes),_this];
|
||||||
|
};
|
||||||
|
|
||||||
params [["_addModes",[],[[]]], ["_removeModes",[],[[]]]];
|
params [["_addModes",[],[[]]], ["_removeModes",[],[[]]]];
|
||||||
private ["_newModes","_currentModes"];
|
private ["_newModes","_currentModes"];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user