From 8494462a96ee2b20edc828db46039d495a7fffba Mon Sep 17 00:00:00 2001 From: Richard Harrison Date: Thu, 30 Mar 2017 04:04:21 +0200 Subject: [PATCH] Fixed another crash in MP interpolation when data isn't available. --- src/AIModel/AIMultiplayer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AIModel/AIMultiplayer.cxx b/src/AIModel/AIMultiplayer.cxx index 32d6e8fb6..eb8ae4cce 100644 --- a/src/AIModel/AIMultiplayer.cxx +++ b/src/AIModel/AIMultiplayer.cxx @@ -286,7 +286,7 @@ void FGAIMultiplayer::update(double dt) } } - else { + else if (nextIt != mMotionInfo.end()) { // Ok, we have really found something where our target time is in between // do interpolation here MotionInfo::iterator prevIt = nextIt;