Decompile fn_22576 (SpriteRidingOffset)

Batch #13362 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_22576 SpriteRidingOffset: logic confirmed by peer review

Peer-reviewed-by: eAthena, Yommy, aDw, codeplay
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-07 03:55:33 +00:00
commit de7ba031af

View file

@ -17,8 +17,9 @@ int SpriteRidingOffset(const ActionFrame* frame, unsigned animation, unsigned mo
return 0;
}
const std::string name = GetBodyActionResourceName(JobNames::BaseJob(job), sex, costumeJob, 0);
CActRes* action = static_cast<CActRes*>(ResourceMgr::Instance().Load(name));
std::string name = GetBodyActionResourceName(JobNames::BaseJob(job), sex, costumeJob, 0);
std::string resourceName(name);
CActRes* action = static_cast<CActRes*>(ResourceMgr::Instance().Load(resourceName));
if (!action) {
return 0;
}