Skip to content

Commit

Permalink
Fixed undefined variables (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom authored May 17, 2024
1 parent a88a46b commit 3ab0d6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cScripts/functions/init/fn_init_pylons.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ private _processed = createHashMap;
_x params ["_loadoutName", "_loadoutInfo"];
private _loadoutMap = createHashMapFromArray _loadoutInfo;
if !("displayName" in _loadoutMap) then {
SHOW_WARNING('VehiclePylon', _classname + " has no displayName!");
SHOW_WARNING_1('VehiclePylon',"%1 has no defined displayName.",_classname);
};
if !("loadout" in _loadoutMap) then {
SHOW_WARNING('VehiclePylon', _loadouts + " has no loadout!");
SHOW_WARNING_1('VehiclePylon',"%1 has no defined loadout.",_classname);
};
if !("icon" in _loadoutMap) then {
SHOW_WARNING('VehiclePylon', _icon + " has no icon!");
SHOW_WARNING_1('VehiclePylon',"%1 has no defined icon.",_classname);
};
_map set [_loadoutName, _loadoutMap];
} forEach _loadouts;
Expand Down

0 comments on commit 3ab0d6d

Please sign in to comment.