We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, we have:
MapdataStartPoint *CourseMap::getStartPoint(u16 i) const { return m_startPoint && m_startPoint->size() != 0 ? m_startPoint->get(i) : nullptr; }
In reality, this is calling an inlined function to get the count of MapdataStartPoint instances in the accessor, which should look like this:
MapdataStartPoint
u16 CourseMap::getStartPointCount() const { return m_startPoint ? m_startPoint->size() : 0; }
And in the base game, we should be comparing i against this count:
i
MapdataStartPoint *CourseMap::getStartPoint(u16 i) const { return i < getStartPointCount() ? m_startPoint->get(i) : nullptr; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, we have:
In reality, this is calling an inlined function to get the count of
MapdataStartPoint
instances in the accessor, which should look like this:And in the base game, we should be comparing
i
against this count:The text was updated successfully, but these errors were encountered: