ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/image.C
(Generate patch)

Comparing deliantra/server/socket/image.C (file contents):
Revision 1.40 by root, Tue Apr 10 09:35:24 2007 UTC vs.
Revision 1.41 by root, Thu Apr 12 14:18:06 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines