… | |
… | |
404 | { |
404 | { |
405 | /* Do some checking on the anim_num we got. Note that the animations |
405 | /* Do some checking on the anim_num we got. Note that the animations |
406 | * are added in contigous order, so if the number is in the valid |
406 | * are added in contigous order, so if the number is in the valid |
407 | * range, it must be a valid animation. |
407 | * range, it must be a valid animation. |
408 | */ |
408 | */ |
409 | if (anim_num < 0 || anim_num > num_animations) |
409 | if (anim_num < 0 || anim_num >= animations.size ()) |
410 | { |
410 | { |
411 | LOG (llevError, "esrv_send_anim (%d) out of bounds??\n", anim_num); |
411 | LOG (llevError, "esrv_send_anim (%d) out of bounds??\n", anim_num); |
412 | return; |
412 | return; |
413 | } |
413 | } |
414 | |
414 | |