Decompile fn_01846 (CDCBitmap::Draw)

Batch #17992 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_01846 CDCBitmap::Draw: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, bibinir
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-12 10:59:13 +00:00
commit ab1a83c937

View file

@ -77,8 +77,8 @@ void CDCBitmap::Draw(int x, int y, int width, int height, std::uint32_t color) {
}
if (this->m_cache.m_alpha == true) {
for (CTexture* texture : this->m_cache.m_textures) {
texture->Draw(x, y, width, height, color);
for (auto texture = this->m_cache.m_textures.begin(); texture != this->m_cache.m_textures.end(); ++texture) {
(*texture)->Draw(x, y, width, height, color);
}
} else {
auto texture = this->m_cache.m_textures.begin();