src/sgp/Button_System.cc
static BUTTON_PICS* FindFreeButtonSlot(void)
{
	// Search for a slot
	FOR_EACH(BUTTON_PICS, i, ButtonPictures)
	{
		if (i->vobj == NULL) return i;
	}
	throw std::runtime_error("Out of button image slots");
}
// Finds an available slot for loading button pictures
Finds an available slot for loading button pictures
Finds an available slot for loading button pictures
static BUTTON_PICS* FindFreeButtonSlot(void)
{
	FOR_EACH(BUTTON_PICS, i, ButtonPictures)
	{
		if (i->vobj == NULL) return i;
	}
	throw std::runtime_error("Out of button image slots");
}
static BUTTON_PICS * FindFreeButtonSlot ( void ) { FOR_EACH ( BUTTON_PICS , i , ButtonPictures ) { if ( i -> vobj == NULL ) return i ; } throw std :: runtime_error ( " " ) ; }
Finds an available slot for loading button pictures
Finds an available slot for loading button pictures
// Search for a slot