summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphLoader/J3DModelLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/JSystem/J3DGraphLoader/J3DModelLoader.h')
-rw-r--r--include/JSystem/J3DGraphLoader/J3DModelLoader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/JSystem/J3DGraphLoader/J3DModelLoader.h b/include/JSystem/J3DGraphLoader/J3DModelLoader.h
index 1e2aa2051a..a0a9709002 100644
--- a/include/JSystem/J3DGraphLoader/J3DModelLoader.h
+++ b/include/JSystem/J3DGraphLoader/J3DModelLoader.h
@@ -239,7 +239,7 @@ enum J3DModelLoaderFlagTypes {
J3DMLF_Material_Color_AmbientOn = 0x80000000
};
-static inline u32 getMdlDataFlag_TevStageNum(u32 flags) { return (flags >> 0x10) & 0x1f; }
+static inline u32 getMdlDataFlag_TevStageNum(u32 flags) { return (flags & 0x001f0000) >> 0x10; }
static inline u32 getMdlDataFlag_TexGenFlag(u32 flags) { return flags & 0x0c000000; }
static inline u32 getMdlDataFlag_ColorFlag(u32 flags) { return flags & 0xc0000000; }
static inline u32 getMdlDataFlag_PEFlag(u32 flags) { return flags & 0x30000000; }