The size() method of std::vector appears to be returning -1, I have initialized and assigned a first element.
This is the part of my code that is causing issues:
Brain.Screen.print(m_yellowObjects.size()); // m_yellowObjects.size is a vector with a custom type
if(m_yellowObjects.size() > 0)
The results from this segment are:
This obviously doesn’t make any sense, the only point where m_yellowObjects is interacted with before this is when I give it a value for the first element in the constructor.