It looks like you're new here. If you want to get involved, click one of these buttons!
[09:48:34] [ASSERT] [orxStructure.h:orxStructure_TestFlags():427] [ASSERT] : <(_pStructure != orxNULL) && (((((orxSTRUCTURE *)(_pStructure))->u64GUID & orxSTRUCTURE_GUID_MASK_STRUCTURE_ID) >> orxSTRUCTURE_GUID_SHIFT_STRUCTURE_ID) < orxSTRUCTURE_ID_NUMBER)>
Trace/breakpoint trap (core dumped)
Here is my OnCreate function:
void Menu::OnCreate()
{
orxOBJECT* p_current_object;
// Populate menu vector
menu_option_list.push_back(orxObject_GetOwnedChild(GetOrxObject()));
menu_option_iterator = menu_option_list.begin();
for(p_current_object = *menu_option_iterator; p_current_object != orxNULL;
menu_option_iterator++, p_current_object = orxObject_GetOwnedSibling(*menu_option_iterator))
menu_option_list.push_back(p_current_object);
// Select the first menu option
HighlightMenuOption(0);
return;
}
[O-MainMenu]
Position = (512, 384, 0)
ChildList = O-StoryMode # O-ArcadeMode # O-ScoreAttack # O-Records # O-Options # O-QuitGame
Comments
You can access either the global list of all ScrollObjects, or only the list of ScrollObject of a given type/class.
The methods for that are