Skip to content

Commit 36b054d

Browse files
committed
fix: fix BinaryStream.writeUnsignedChar
1 parent 337512f commit 36b054d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legacy/api/PacketAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Local<Value> BinaryStreamClass::writeUnsignedChar(const Arguments& args) {
282282
if (!pkt) {
283283
return Local<Value>();
284284
}
285-
pkt->writeUnsignedChar(args[0].asNumber().toInt32(), nullptr, nullptr);
285+
pkt->writeByte(args[0].asNumber().toInt32(), nullptr, nullptr);
286286
return Boolean::newBoolean(true);
287287
}
288288
CATCH("Fail in BinaryStream writeUnsignedChar!");

0 commit comments

Comments
 (0)