diff --git a/ArcFormats/ArcCommon.cs b/ArcFormats/ArcCommon.cs index 3182cd8d..1764c8ac 100644 --- a/ArcFormats/ArcCommon.cs +++ b/ArcFormats/ArcCommon.cs @@ -463,6 +463,7 @@ namespace GameRes.Formats public static ulong PSllD (ulong x, int count) { + count &= 0x1F; ulong mask = 0xFFFFFFFFu << count; mask |= mask << 32; return (x << count) & mask;