From ada9b6a9ea0ebd7f231719e0ac78f06b57e671a3 Mon Sep 17 00:00:00 2001
From: RedEnchilada <red@lyrawearspants.com>
Date: Wed, 18 Feb 2015 23:42:01 +0000
Subject: [PATCH] I was helping yellow debug a crash and we found out this
 thing never actually fixed the crash like it was supposed to so it's fixed
 now -3-

git-svn-id: https://code.orospakr.ca/svn/srb2/trunk@9044 6de4a73c-47e2-0310-b8c1-93d6ecd3f8cd
---
 src/hardware/hw_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c
index af8609c1c..4afd79983 100644
--- a/src/hardware/hw_main.c
+++ b/src/hardware/hw_main.c
@@ -4560,6 +4560,7 @@ static void HWR_ProjectSprite(mobj_t *thing)
 			sizeu1(rot), sizeu2(sprdef->numframes), sprnames[thing->sprite]);
 		thing->sprite = states[S_UNKNOWN].sprite;
 		thing->frame = states[S_UNKNOWN].frame;
+		sprdef = &sprites[thing->sprite];
 		rot = thing->frame&FF_FRAMEMASK;
 		thing->state->sprite = thing->sprite;
 		thing->state->frame = thing->frame;
-- 
GitLab