View Single Post
Old May 9, 2017, 15:56   #96
Join Date: May 2016
Posts: 330
t4nk is on a distinguished road
Originally Posted by PowerWyrm View Post
That's what the code does everywhere. The main reason is to put zero as index in the savefiles where there is nothing to save, while keeping a trivial loading routine: read index, assign struct = structs[index]. Otherwise, you would have to check the index, see if it's zero, assign null in that case, assign struct = structs[index-1] in other cases.
Ah, so that's how it was (angband now saves artefact names as strings instead).
t4nk is offline   Reply With Quote