From 392b246ee91310bc6b28283b5af0bb919dca41fb Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sun, 29 Aug 2010 16:49:42 +0000 Subject: [PATCH] Fix bug in uncompressed MDR model loading, thansk to Zack "ZTurtleMan" Middleton for reporting. --- code/renderer/tr_model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/renderer/tr_model.c b/code/renderer/tr_model.c index 53555809..6f7d7c56 100644 --- a/code/renderer/tr_model.c +++ b/code/renderer/tr_model.c @@ -562,8 +562,8 @@ static qboolean R_LoadMDR( model_t *mod, void *buffer, int filesize, const char ((float *)frame->bones)[j] = LittleFloat( ((float *)curframe->bones)[j] ); } - curframe++; - frame++; + curframe = (mdrFrame_t *) &cframe->bones[j]; + frame = (mdrFrame_t *) &frame->bones[j]; } }