chiark / gitweb /
Galaxies: fix assertion failure when adding out-of-bounds association.
authorFranklin Wei <franklin@rockbox.org>
Sun, 5 Jul 2020 23:32:26 +0000 (19:32 -0400)
committerSimon Tatham <anakin@pobox.com>
Mon, 7 Dec 2020 21:43:54 +0000 (21:43 +0000)
commit84cb4c6701e027090ff3fd955ce08065e20121b2
tree67252d01e5233fe3d88e313341e75a78bd11d153
parent78bc9ea7f79f379634f822d5f95242900f5716b9
Galaxies: fix assertion failure when adding out-of-bounds association.

Adding an association with an out-of-bounds square (i.e. by pressing Return
with a dot selected, and then moving the cursor so the `opposite' arrow was
off the screen) would cause space_opposite_dot() to return NULL, in turn
causing ok_to_add_assoc_with_opposite_internal() to return false, failing
the assertion.

This assertion appears to have been introduced in 68363231.
galaxies.c