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:
parent
b05c43fa2f
commit
cb097bef58
1 changed files with 8 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue