mirror of
https://github.com/Tribufu/node-gamedig
synced 2026-08-09 07:01:06 +00:00
Clean up reader.string
This commit is contained in:
parent
6189d2fa62
commit
fc5975bf0c
12 changed files with 58 additions and 61 deletions
|
|
@ -153,8 +153,7 @@ class Battlefield extends Core {
|
|||
const paramCount = reader.uint(4);
|
||||
const params = [];
|
||||
for(let i = 0; i < paramCount; i++) {
|
||||
const len = reader.uint(4);
|
||||
params.push(reader.string({length:len}));
|
||||
params.push(reader.pascalString(4));
|
||||
const strNull = reader.uint(1);
|
||||
}
|
||||
return params;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue