From c12dc3621349482971283c3ea499e5737d948dcd Mon Sep 17 00:00:00 2001 From: jaynus Date: Fri, 15 May 2015 12:52:18 -0700 Subject: [PATCH] animation syncing fix. --- extensions/vd/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vd/controller.cpp b/extensions/vd/controller.cpp index dc12eec4c3..76b8c34140 100644 --- a/extensions/vd/controller.cpp +++ b/extensions/vd/controller.cpp @@ -155,7 +155,7 @@ namespace ace { if (vehicles.find(id) == vehicles.end()) return false; - for (int x = 1, y = 1; x <= vehicles[id]->animation_state.size(); x++, y +=2) { + for (int x = 1, y = 1; x <= vehicles[id]->animation_state.size() && y < _args.size()-1; x++, y +=2) { std::string animation_name = _args[y]; float state = _args[y + 1]; vehicles[id]->animation_state[animation_name] = state;