Guys there's something here that I'm not seeing... very tired so it's probably why.. but yeah:
The function I'm calling to:
The line I use to call the function:Code:void Inventory::SetCurrentItem(ushort& item_ID, const ushort& item_type)
A ushort is an unsigned short int.Code:SetCurrentItem(item.GetItemID(), item.GetType());
GetItemID() returns a ushort.
GetType() returns a ushort.
The error that I get:
Code:Error 1 error C2664: 'Inventory::SetCurrentItem' : cannot convert parameter 1 from 'ushort' to 'ushort &' c:\documents and settings\user\my documents\visual studio 2005\projects\hex\hex\inventory.cpp 779![]()




Reply With Quote