Skip to content

Commit

Permalink
Bypass crash on invalid AI map at kamp point
Browse files Browse the repository at this point in the history
Since CS has a couple of these and now we have properly working checks which force the crash.
  • Loading branch information
ggGhosTt committed Apr 9, 2024
1 parent a7eafc2 commit 35f7678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gamedata/scripts/xr_kamp.script
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ function CKampManager:getDestVertex(npc, radius)
dest_vertex = level.vertex_id(tmp_pos)
if dest_vertex == 4294967295 then
if radius < 1 then
abort("Invalid AI map at kamp point [%s]", self.kamp_name)
log("Invalid AI map at kamp point [%s]", self.kamp_name)
dest_vertex = utils.send_to_nearest_accessible_vertex(npc, dest_vertex)
else
radius = radius - 0.5
end
Expand Down

0 comments on commit 35f7678

Please sign in to comment.