mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
animation syncing fix.
This commit is contained in:
parent
c13881c34c
commit
c12dc36213
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user