mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-30 10:58:07 +03:00
Encoding: Refactor mblen() to accept first byte instead of pointer
This commit is contained in:
+1
-1
@@ -299,7 +299,7 @@ void NACT::message(uint8 terminator)
|
||||
const uint8* begin = sco.ptr();
|
||||
const uint8* p = begin;
|
||||
while (is_message(*p))
|
||||
p += encoding->mblen(p);
|
||||
p += encoding->mblen(*p);
|
||||
int len = p - begin;
|
||||
sco.skip(len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user