From: James Turner Date: Wed, 29 Jun 2016 15:26:42 +0000 (+0100) Subject: Fix debug runtime assert X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fd5b9ca798167b909baffecdc2b2d4f55746f15;p=simgear.git Fix debug runtime assert --- diff --git a/simgear/props/PropertyInterpolationMgr.cxx b/simgear/props/PropertyInterpolationMgr.cxx index ad8060e2..1e8ac02c 100644 --- a/simgear/props/PropertyInterpolationMgr.cxx +++ b/simgear/props/PropertyInterpolationMgr.cxx @@ -70,6 +70,12 @@ namespace simgear break; } } + + // needed to avoid incrementing an invalid iterator when we + // erase the last interpolator + if (it == _interpolators.end()) { + break; + } } }