mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-19 05:33:02 +00:00
fixed a bug with saving string
This commit is contained in:
parent
bcd2a6230f
commit
50bb01b7e2
@ -82,6 +82,8 @@ inline void hwrite(hstream& hs, const string& s) {
|
||||
hs.write_char((char)255);
|
||||
hs.write<int>(isize(s));
|
||||
}
|
||||
else
|
||||
hs.write_char(isize(s));
|
||||
for(char c: s) hs.write_char(c);
|
||||
}
|
||||
inline void hread(hstream& hs, string& s) {
|
||||
|
Loading…
Reference in New Issue
Block a user