mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix some random compiler warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ed41d5a744
commit
9c90d6790a
3 changed files with 2 additions and 4 deletions
|
@ -1321,7 +1321,7 @@ void DivePlannerPointsModel::tanksUpdated()
|
|||
divedatapoint& p = divepoints[j];
|
||||
int o2 = oldGases.at(i).first;
|
||||
int he = oldGases.at(i).second;
|
||||
if (p.o2 == o2 && p.he == he ||
|
||||
if ((p.o2 == o2 && p.he == he) ||
|
||||
(is_air(p.o2, p.he) && (is_air(o2, he) || (o2 == 0 && he == 0)))) {
|
||||
p.o2 = gases.at(i).first;
|
||||
p.he = gases.at(i).second;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue