diff --git a/extensions/clientprefs/cookie.cpp b/extensions/clientprefs/cookie.cpp index 01f90368..53ff2fdc 100644 --- a/extensions/clientprefs/cookie.cpp +++ b/extensions/clientprefs/cookie.cpp @@ -396,7 +396,7 @@ void CookieManager::OnPluginDestroyed(IPlugin *plugin) { ItemDrawInfo draw; const char *info = clientMenu->GetItemInfo(i, &draw); - AutoMenuData *data = (AutoMenuData *)strtol(info, NULL, 16); + AutoMenuData *data = (AutoMenuData *)strtoul(info, NULL, 16); if (data->handler->forward != NULL) { diff --git a/extensions/clientprefs/menus.cpp b/extensions/clientprefs/menus.cpp index ca2e8401..3c9b6714 100644 --- a/extensions/clientprefs/menus.cpp +++ b/extensions/clientprefs/menus.cpp @@ -40,7 +40,7 @@ void ClientMenuHandler::OnMenuSelect(IBaseMenu *menu, int client, unsigned int i const char *info = menu->GetItemInfo(item, &draw); - AutoMenuData *data = (AutoMenuData *)strtol(info, NULL, 16); + AutoMenuData *data = (AutoMenuData *)strtoul(info, NULL, 16); if (data->handler->forward != NULL) { @@ -94,7 +94,7 @@ unsigned int ClientMenuHandler::OnMenuDisplayItem(IBaseMenu *menu, const char *info = menu->GetItemInfo(item, &draw); - AutoMenuData *data = (AutoMenuData *)strtol(info, NULL, 16); + AutoMenuData *data = (AutoMenuData *)strtoul(info, NULL, 16); if (data->handler->forward != NULL) { @@ -122,7 +122,7 @@ void AutoMenuHandler::OnMenuSelect(SourceMod::IBaseMenu *menu, int client, unsig const char *info = menu->GetItemInfo(item, &draw); - AutoMenuData *data = (AutoMenuData *)strtol(info, NULL, 16); + AutoMenuData *data = (AutoMenuData *)strtoul(info, NULL, 16); switch (data->type) {