Replace FindFirstBit/FindFirstBit64 with a single template function

This commit is contained in:
Jonathan G Rennison
2021-11-01 23:00:44 +00:00
parent d585ce75dd
commit 1e0bea5b8d
8 changed files with 41 additions and 37 deletions

View File

@@ -340,7 +340,7 @@ class NIHVehicle : public NIHelper {
if (cb36_properties != UINT64_MAX) {
uint64 props = cb36_properties;
while (props) {
PropertyID prop = (PropertyID)FindFirstBit64(props);
PropertyID prop = (PropertyID)FindFirstBit(props);
props = KillFirstBit(props);
uint16 res = GetVehicleProperty(v, prop, CALLBACK_FAILED);
if (res == CALLBACK_FAILED) {