mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
Fix writing pvs
This commit is contained in:
parent
9c5e5648b5
commit
19b10b253f
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ function readPVSType(stream: BitStream): PVS {
|
||||||
|
|
||||||
function writePVSType(pvs: PVS, stream: BitStream) {
|
function writePVSType(pvs: PVS, stream: BitStream) {
|
||||||
const raw = pvsReverseMap.get(pvs);
|
const raw = pvsReverseMap.get(pvs);
|
||||||
if (!raw) {
|
if (typeof raw === 'undefined') {
|
||||||
throw new Error(`Unknown pvs ${pvs}`);
|
throw new Error(`Unknown pvs ${pvs}`);
|
||||||
}
|
}
|
||||||
stream.writeBits(raw, 2);
|
stream.writeBits(raw, 2);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue