diff --git a/src/rescle.cc b/src/rescle.cc index 4cdff4a..5aa2f70 100644 --- a/src/rescle.cc +++ b/src/rescle.cc @@ -902,7 +902,7 @@ BOOL CALLBACK ResourceUpdater::OnEnumResourceLanguage(HANDLE hModule, LPCWSTR lp } case reinterpret_cast(RT_ICON): { UINT iconId = reinterpret_cast(lpszName); - UINT maxIconId = instance->iconBundleMap_[wIDLanguage].maxIconId; + UINT& maxIconId = instance->iconBundleMap_[wIDLanguage].maxIconId; if (iconId > maxIconId) maxIconId = iconId; break;