mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed module init exit condition
This commit is contained in:
parent
b83b161e3d
commit
89c5218bbd
@ -34,7 +34,7 @@ _names = [_logic getVariable ["Names", ""], true, false] call FUNC(makeList);
|
||||
_duration = _logic getVariable ["Duration", 0];
|
||||
|
||||
// Exit if Images or Names fields are empty
|
||||
if (_images == "" || {_names == ""}) exitWith {diag_log "[ACE] ERROR: Slideshow Module NOT Initialized: Images or Names fields can NOT be empty!"};
|
||||
if (_images == [] || {_names == []} || {count _images != count _names}) exitWith {diag_log "[ACE] ERROR: Slideshow Module NOT Initialized: Images or Names fields can NOT be empty and must have equal number of items!"};
|
||||
|
||||
// Prepare with actions
|
||||
[_objects, _controllers, _images, _names, _duration] call FUNC(createSlideshow);
|
||||
|
Loading…
Reference in New Issue
Block a user