[iortcw] 68/89: All: Rend2: Fix crash when using cg_shadows 4
Simon McVittie
smcv at debian.org
Fri Sep 8 10:44:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to tag 1.51b
in repository iortcw.
commit ee78db29ceb311bd84f85ba13fe00ea33eafeffc
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Fri Jul 21 16:01:37 2017 -0400
All: Rend2: Fix crash when using cg_shadows 4
---
MP/code/rend2/tr_main.c | 2 +-
SP/code/rend2/tr_main.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/MP/code/rend2/tr_main.c b/MP/code/rend2/tr_main.c
index 43e3c1f..cbd3523 100644
--- a/MP/code/rend2/tr_main.c
+++ b/MP/code/rend2/tr_main.c
@@ -2089,7 +2089,7 @@ void R_RenderPshadowMaps(const refdef_t *fd)
break;
case MOD_MDS:
{
- mdsHeader_t *header = model->modelData;
+ mdsHeader_t *header = model->mds;
int frameSize = (size_t)( &((mdsFrame_t *)0)->bones[ header->numBones ] );
mdsFrame_t *frame = ( mdsFrame_t * ) ( ( byte * ) header + header->ofsFrames + frameSize * ent->e.frame);
diff --git a/SP/code/rend2/tr_main.c b/SP/code/rend2/tr_main.c
index d607d38..a84c61b 100644
--- a/SP/code/rend2/tr_main.c
+++ b/SP/code/rend2/tr_main.c
@@ -2131,7 +2131,7 @@ void R_RenderPshadowMaps(const refdef_t *fd)
break;
case MOD_MDS:
{
- mdsHeader_t *header = model->modelData;
+ mdsHeader_t *header = model->mds;
int frameSize = (size_t)( &((mdsFrame_t *)0)->bones[ header->numBones ] );
mdsFrame_t *frame = ( mdsFrame_t * ) ( ( byte * ) header + header->ofsFrames + frameSize * ent->e.frame);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list