mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
Changed code so more likely scenario is in 'if' and not 'else'
This commit is contained in:
parent
70efc863c8
commit
0a5f47ab1b
1 changed files with 2 additions and 2 deletions
|
@ -61,13 +61,13 @@ private:
|
|||
static int32_t GetExtendedID8_Stock(const uint8_t* ptr)
|
||||
{
|
||||
const uint8_t uID = *ptr;
|
||||
return uID == MAX_UINT8_ID ? -1 : uID;
|
||||
return uID != MAX_UINT8_ID ? uID : -1;
|
||||
}
|
||||
|
||||
static int32_t GetExtendedID16_Stock(const uint16_t* ptr)
|
||||
{
|
||||
const uint16_t uID = *ptr;
|
||||
return uID > MAX_UINT16_ID ? *reinterpret_cast<const int16_t*>(ptr) : uID;
|
||||
return uID <= MAX_UINT16_ID ? uID : *reinterpret_cast<const int16_t*>(ptr);
|
||||
}
|
||||
|
||||
static int32_t (*GetExtendedID8Func)(const uint8_t* ptr);
|
||||
|
|
Loading…
Reference in a new issue