AnimationSet: use while loop instead of do-while
Loot: don't use animation, which may be possible freed.
Merge pull request #937 from stefanbeller/smallfixes

Smallfixes