From 48a12e17b640175f3ae32f9bb1e877dc4347190c Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:21:28 +0100 Subject: [PATCH] Tier1: assert on LZSS window size being a power of 2 --- r5dev/public/tier1/lzss.h | 1 + 1 file changed, 1 insertion(+) diff --git a/r5dev/public/tier1/lzss.h b/r5dev/public/tier1/lzss.h index 86fbabeb..47f5adeb 100644 --- a/r5dev/public/tier1/lzss.h +++ b/r5dev/public/tier1/lzss.h @@ -65,6 +65,7 @@ private: FORCEINLINE CLZSS::CLZSS( int nWindowSize ) { + Assert( IsPowerOfTwo( nWindowSize ) ); m_nWindowSize = nWindowSize; } #endif