save: try to save the magic_ptrs correctly...

This commit is contained in:
ALONSO Laurent
2022-07-14 16:06:40 +02:00
committed by Celtic Minstrel
parent 0d0b577c9c
commit fa15177978

View File

@@ -685,7 +685,7 @@ void cParty::writeTo(std::ostream& file) const {
for(auto iter = pointers.begin(); iter != pointers.end(); iter++)
file << "POINTER " << iter->first << ' ' << iter->second.first << ' ' << iter->second.second << '\n';
for(int i = 0; i < magic_ptrs.size(); i++)
file << "POINTER " << i << ' ' << int(magic_ptrs[i]) << '\n';
file << "POINTER " << i+10 << ' ' << int(magic_ptrs[i]) << '\n';
file << "LIGHT " << light_level << '\n';
file << "OUTCORNER " << outdoor_corner.x << ' ' << outdoor_corner.y << '\n';
file << "INWHICHCORNER " << i_w_c.x << ' ' << i_w_c.y << '\n';