VarAction2: Fix callback analysis through real sprite groups

See: #618
This commit is contained in:
Jonathan G Rennison
2023-12-17 13:57:24 +00:00
parent 5f08bde936
commit d793da4034
2 changed files with 12 additions and 0 deletions

View File

@@ -321,3 +321,13 @@ void RandomizedSpriteGroup::AnalyseCallbacks(AnalyseCallbackOperation &op) const
if (group != nullptr) group->AnalyseCallbacks(op);
}
}
void RealSpriteGroup::AnalyseCallbacks(AnalyseCallbackOperation &op) const
{
for (const SpriteGroup *group: this->loaded) {
if (group != nullptr) group->AnalyseCallbacks(op);
}
for (const SpriteGroup *group: this->loading) {
if (group != nullptr) group->AnalyseCallbacks(op);
}
}