mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Remove magic number in invalid version check
This commit is contained in:
@@ -559,7 +559,7 @@ const readNumber = readBits(NUMBERS_BITS);
|
|||||||
export function readPony(read: ReadBits): Precompressed {
|
export function readPony(read: ReadBits): Precompressed {
|
||||||
const version = read(VERSION_BITS);
|
const version = read(VERSION_BITS);
|
||||||
|
|
||||||
if (version > 5) {
|
if (version > VERSION) {
|
||||||
throw new Error('Invalid version');
|
throw new Error('Invalid version');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user