From 21509dd2ef37e80218a1278b8758272af1b49732 Mon Sep 17 00:00:00 2001 From: cutealien Date: Wed, 8 Jun 2011 15:31:48 +0000 Subject: [PATCH] Avoid crash in .mdl loader on 64bit unix systems. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3824 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CAnimatedMeshHalfLife.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Irrlicht/CAnimatedMeshHalfLife.h b/source/Irrlicht/CAnimatedMeshHalfLife.h index c80696ca..03dc497a 100644 --- a/source/Irrlicht/CAnimatedMeshHalfLife.h +++ b/source/Irrlicht/CAnimatedMeshHalfLife.h @@ -146,7 +146,9 @@ namespace scene } PACK_STRUCT; #ifndef ZONE_H - typedef void *cache_user_t; + // NOTE: this was a void*, but that crashes on 64bit. + // I have found no mdl format desc, so not sure what it's meant to be, but s32 at least works. + typedef s32 cache_user_t; #endif // demand loaded sequence groups