Sprite.h error

Fixed a bug in sprite.h