Closed fnky closed 7 years ago
Code to fix this:
static ItemInfo& ItemInfo_opAssign( const ItemInfo* pThis, const ItemInfo& other )
{
*pThis = other;
return *pThis;
}
//In RegisterSCScriptItemInfo:
pDocumentation->RegisterObjectMethod( "Assignment operator",
pszObjectName, "ItemInfo& opAssign(const ItemInfo& in other)",
asFUNCTION( ItemInfo_opAssign ), asCALL_CDECL_OBJFIRST );
In trunk/dlls/Angelscript/ScriptTypes/Entity/ASPlayerItemEntity.cpp
Untested, but should work fine. If not, adjust as needed.
The fix for this issue will be included in the next update (5.13). Closing.
ItemInfo is missing the opAssign method.