aboutsummaryrefslogtreecommitdiffstats
path: root/worldmap-save.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-17 19:58:55 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-18 10:09:42 -0700
commit8e5eb71e0b344a68fc6fcfae1ace6fef6605a3d5 (patch)
treeba31edb311b3e7dbe2a62bf115db9951e79e212b /worldmap-save.c
parent606bf377c539610950114f2bf2f55af0de4a2209 (diff)
downloadsubsurface-8e5eb71e0b344a68fc6fcfae1ace6fef6605a3d5.tar.gz
Correct usage of current_dive to displayed_dive
current_dive is the selected dive, and displayed_dive is the one we are currently drawing. They are quite often the same one, but not in the case of adding a dive for example. This fixes potential null pointer dereferences in the case of a blank divelist, and makes sure we use the correct data in the case of adding and planning dives. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'worldmap-save.c')
0 files changed, 0 insertions, 0 deletions