Changed a variable declaration to be 'auto'

This commit is contained in:
Nathan Woods 2016-06-30 05:57:16 -04:00
parent 3d454f8c97
commit 749e182a80

View file

@ -358,7 +358,7 @@ void menu::item_append(std::string &&text, std::string &&subtext, UINT32 flags,
pitem.type = type;
// append to array
int index = item.size();
auto index = item.size();
if (!item.empty())
{
item.insert(item.end() - 1, pitem);