From 61e29b70a6b003902182a3dcfc5d61bf3eac2f36 Mon Sep 17 00:00:00 2001 From: Ashnal Date: Tue, 10 Sep 2024 22:20:55 -0400 Subject: [PATCH] Fixes crashes in TA when reading ghosts that use the new RNG classes --- src/g_demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_demo.cpp b/src/g_demo.cpp index 3517795c6..f4f17dc38 100644 --- a/src/g_demo.cpp +++ b/src/g_demo.cpp @@ -3703,7 +3703,7 @@ void G_AddGhost(savebuffer_t *buffer, const char *defdemoname) p += 4; UINT32 num_classes; - if (demo.version <= 0x000D) + if (ghostversion <= 0x000D) { num_classes = PROLDDEMO; } @@ -3943,7 +3943,7 @@ staffbrief_t *G_GetStaffGhostBrief(UINT8 *buffer) temp.lap = READUINT32(p); UINT32 num_classes; - if (demo.version <= 0x000D) + if (ghostversion <= 0x000D) { num_classes = PROLDDEMO; }