Confused about List


I’m confused about usage of List, code in c++

if (availableBestSkillNb == -1 || !m_pBaseEquipment->m_pSkills[availableBestSkillNb]->m_pOverlapCharacters.Contains(pTarget))

what will be the translated code in SKerror


Could you give us more of your above C++ and Sk code so we have an idea of which classes and methods you are working in and with?

I’m not sure how you got to target in your Sk code above - the parser sees it as having an interesting class type.

You might be wanting to use item.same?(target) which tests to see if it is the same object in memory (same pointer/reference) rather than item = target which tests if objects are logically equivalent.