Follow-up Comment #5, bug #23093 (project freeciv):
startpos_hash_replace() is called into a startpos_hash_iterate loop. But
startpos_hash_replace() is actually genhash_replace() and it calls
genhash_maybe_expand() which can cause the hash table to be resized (but the
iterator keeps invalid data).
So, instead of using startpos_hash_replace() to update the counter, I have
made the hash table using integer pointers as data (instead of plain
integers).
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23093>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev