From 897ef3d47f022d44d09eb9c5ea50478724fee935 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Mon, 27 Jan 2025 01:43:45 -0500 Subject: [PATCH] Fix slope anchors crash --- src/slope_anchors.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/slope_anchors.c b/src/slope_anchors.c index 45791e1bb..b276a21da 100644 --- a/src/slope_anchors.c +++ b/src/slope_anchors.c @@ -1,6 +1,7 @@ -// SONIC ROBO BLAST 2 KART +// DR. ROBOTNIK'S RING RACERS //----------------------------------------------------------------------------- -// Copyright (C) 2020 by James R. +// Copyright (C) 2024 by James Robert Roman. +// Copyright (C) 2024 by Kart Krew. // // This program is free software distributed under the // terms of the GNU General Public License, version 2. @@ -199,7 +200,7 @@ get_anchor for (i = 0; i < list->count; ++i) { - if (list->points[i] == v && list->anchors[i]->tid == group) + if (list->points[i] == v && list->anchors[i]->args[0] == group) { for (k = 0; k < 3; ++k) { @@ -500,7 +501,7 @@ static void P_SetupAnchoredSlopes (void) { if (plane == 0) { - CONS_Alert(CONS_WARNING, "Slope anchor linedef %lu has no planes set.\n", i); + CONS_Alert(CONS_WARNING, "Slope anchor linedef %s has no planes set.\n", sizeu1(i)); continue; }