1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-18 21:23:03 +00:00

fixed a bug with saving string

This commit is contained in:
Zeno Rogue 2020-07-12 21:38:39 +02:00
parent bcd2a6230f
commit 50bb01b7e2

View File

@ -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) {