Fix looping over children of client on mapchange

Mimic behaviour of IndexToAThings in smn_entities.cpp#144