… | |
… | |
1408 | * the only place this is not set is when saving the player. |
1408 | * the only place this is not set is when saving the player. |
1409 | */ |
1409 | */ |
1410 | bool |
1410 | bool |
1411 | object::write (object_freezer &f) |
1411 | object::write (object_freezer &f) |
1412 | { |
1412 | { |
1413 | archetype *at = arch ? (archetype *)arch : archetype::empty; |
1413 | archetype *at = arch ? arch : archetype::empty; |
1414 | |
1414 | |
1415 | f.put (KW_arch, at->archname); |
1415 | f.put (KW_arch, at->archname); |
1416 | write_diff (f, this, at); |
1416 | write_diff (f, this, at); |
1417 | |
1417 | |
1418 | for (object *tmp = inv; tmp; tmp = tmp->below) |
1418 | for (object *tmp = inv; tmp; tmp = tmp->below) |