Znote / POTCP

(P)HP (O)pen (T)ibia (C)lient (P)rotocol
MIT License
9 stars 6 forks source link

fix bug in peekU32 #13

Closed divinity76 closed 5 years ago

divinity76 commented 5 years ago

... the old code would essentially give you a peekU16, meaning it would return the wrong value for anything higer than 65535 (because little-endian uint32 doesn't use the last 2 bytes for numbers lower than 65535)

sorry, my bad.