NMan1 / OverflowTF2

Internal TF2 cheat, esp, aimbot + projectile aimbot, misc stuff, imgui
20 stars 8 forks source link

A part of conditional expression is always false #1

Closed thehlopster closed 3 years ago

thehlopster commented 3 years ago
uint32_t index

https://github.com/NMan1/OverflowTF2/blob/54ec88f65472c3cf7ddb180b9a65b562dd44023d/core/utils/memory/memory.hpp#L71 https://github.com/NMan1/OverflowTF2/blob/54ec88f65472c3cf7ddb180b9a65b562dd44023d/core/utils/memory/memory.hpp#L80 https://github.com/NMan1/OverflowTF2/blob/54ec88f65472c3cf7ddb180b9a65b562dd44023d/core/utils/memory/memory.hpp#L88

typedef unsigned int       uint32_t;

since uint32_t is unsigned it is never lower than 0, so this check is unnecessary and can be removed

NMan1 commented 3 years ago

thank you