Code: Select all
struct SAbilityDrawParams
{
list<class CAbility *>::Iterator ab;
...
};
void CInterface::drawAbilityTones( const SAbilityDrawParams ¶ms )
{
if( (*params.ab)->selfTonesChange[t] > maxSelfToneCh )
...
}
Code: Select all
C2678 binary '*' : no operator defined which takes a left-hand operand of type 'const irr::core::list<T>::Iterator' (or there is no acceptable conversion)
I tried to use pin pointers but no one of two variants pass through the same error
Code: Select all
cli::pin_ptr<const list<CAbility *>::Iterator> p = ¶ms.ab;
const irr::core::list<CAbility *>::Iterator ab = *p;
if( (*ab)->targetTonesChange[t] < minTargToneCh )
Code: Select all
cli::pin_ptr<const list<CAbility *>::Iterator> p = ¶ms.ab;
if( (**p)->targetTonesChange[t] < minTargToneCh )