DIRECTOR: Only use kCastMemberSprite when cast member exists

The default sprite type for an empty channel in Director is kInactiveSprite;
make sure this is used as some scripts depend on it.

Fixes being unable to summon the drum in Eastern Mind.
This commit is contained in:
Scott Percival
2022-08-28 10:31:00 +00:00
parent ef03dbb92e
commit 830cf1cacd
+1 -1
View File
@@ -460,7 +460,7 @@ void Sprite::setCast(CastMemberID memberID) {
_castId = memberID;
_cast = _movie->getCastMember(_castId);
//As QDShapes don't have an associated cast, we must not change their _SpriteType.
if (g_director->getVersion() >= 400 && !isQDShape())
if (g_director->getVersion() >= 400 && !isQDShape() && _castId != CastMemberID(0, 0))
_spriteType = kCastMemberSprite;
if (_cast) {