Skip to content

Commit

Permalink
Mtn: revert validation of index.index for portable surface module
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Jan 3, 2025
1 parent 4814c71 commit 9dabb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maps/mountain_fortress_v3/ic/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ local function kick_players_out_of_vehicles(car)
for _, player in pairs(game.connected_players) do
local character = player.character
if validate_entity(character) and character.driving then
if car.surface.index == player.physical_surface.index then
if car.surface == player.physical_surface.index then
character.driving = false
end
end
Expand Down

0 comments on commit 9dabb4e

Please sign in to comment.