Skip to content

Commit

Permalink
Fixed infantry not spawning at sectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyqer committed Apr 15, 2019
1 parent 1a2844c commit 9a9a572
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
File: fn_garrison_spawnSectorInfantry.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2018-10-20
Last Update: 2019-03-31
Last Update: 2019-04-15
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
Public: No
Expand Down Expand Up @@ -45,8 +45,8 @@ while {surfaceIsWater _spawnPos} do {

// Set array to select soldier classnames from
switch (_ownerNumber) do {
case 2: {_soldierArray = [KPLIB_preset_sideF] call KPLIB_fnc_common_getSoldierArray;};
default {_soldierArray = [] call KPLIB_fnc_common_getSoldierArray;};
case 2: {_soldierArray = [KPLIB_preset_sideF] call KPLIB_fnc_common_getSoldierArray; _side = KPLIB_preset_sideF;};
default {_soldierArray = [] call KPLIB_fnc_common_getSoldierArray; _side = KPLIB_preset_sideE;};
};

// Fetch unit classnames
Expand Down

0 comments on commit 9a9a572

Please sign in to comment.