Skip to content

Commit

Permalink
Removed fix: Fixed the crash with UnitNetworkHandler: nil checks of a…
Browse files Browse the repository at this point in the history
…rguments in sync_vehicle_player()

Fixed in the base game
  • Loading branch information
Dom3062 committed Sep 13, 2023
1 parent 7e5ceb1 commit 1875a93
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions unitnetworkhandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,4 @@ if not TheFixesPreventer.crash_sync_tear_gas_unitnetwork then
return stggd_orig(self, grenade, ...)
end
end
end

if not TheFixesPreventer.crash_sync_vehicle_player_unitnetwork then
--https://steamcommunity.com/app/218620/discussions/14/3430074800219422411/
local sync_vehicle_player_orig = UnitNetworkHandler.sync_vehicle_player
function UnitNetworkHandler:sync_vehicle_player(action, vehicle, peer_id, player, seat_name)
if action == "enter" and vehicle and peer_id and player and seat_name then
sync_vehicle_player_orig(self, action, vehicle, peer_id, player, seat_name)
elseif action == "exit" and peer_id and player then
sync_vehicle_player_orig(self, action, vehicle, peer_id, player, seat_name)
end
end
end

0 comments on commit 1875a93

Please sign in to comment.