STARK: Some renaming for the Anim resource

This commit is contained in:
Bastien Bouclet 2015-01-11 09:44:40 +01:00
parent 791ac240d5
commit 6733c886c4
4 changed files with 82 additions and 61 deletions

View file

@ -58,7 +58,7 @@ void AnimScript::onAllLoaded() {
void AnimScript::onGameLoop() {
Resource::onGameLoop();
if (!_anim || !_anim->isReferenced() || _nextItemIndex == -1) {
if (!_anim || !_anim->isInUse() || _nextItemIndex == -1) {
// The script is disabled, do nothing
return;
}