Rebzzel / kiero

Universal graphical hook for a D3D9-D3D12, OpenGL and Vulkan based games.
MIT License
1.03k stars 219 forks source link

Useless assertion #11

Closed hypervisor closed 4 years ago

hypervisor commented 4 years ago

https://github.com/Rebzzel/kiero/blob/master/kiero.cpp#L691 https://github.com/Rebzzel/kiero/blob/master/kiero.cpp#L711 Just FYI, these assertions will never fail - _index is an unsigned integer, meaning it will always be larger than or equal to zero.

Rebzzel commented 4 years ago

Hello, @kernel32!

Yes, that's a good point. This was due to the fact that the variable was of the short type at the beginning of development.

This will be fixed in the next commit.

Thank you. Have a nice day!