Decompile fn_17063 (ContainsValue)

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

- fn_17063 ContainsValue: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, Snow
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-10-31 11:35:55 +00:00
commit cb097bef58

View file

@ -4,7 +4,9 @@
#include "UI/Text/ColoredText.h"
#include "UI/Window/UIWindow.h"
#include <algorithm>
#include <cstring>
#include <deque>
#include <string>
#include <windows.h>
@ -299,3 +301,9 @@ std::string StripColorCodes(const char* text, unsigned bytes) {
return result;
}
// OFFSET: 0x00A874B0
// FUNCTION: fn_17063
bool ContainsValue(const std::deque<int>& values, const int& value) {
return std::find(values.begin(), values.end(), value) != values.end();
}