src/sgp/Button_System.cc
static INT32 GetNextButtonNumber(void)
{
	/* Never hand out ID 0.  Slot 0 is always a null pointer */
	for (INT32 x = 1; x < MAX_BUTTONS; x++)
	{
		if (ButtonList[x] == NULL) return x;
	}
	throw std::runtime_error("No more button slots");
}
// Finds the next available button slot.
Finds the next available button slot.
Finds the next available button slot .
static INT32 GetNextButtonNumber(void)
{
	for (INT32 x = 1; x < MAX_BUTTONS; x++)
	{
		if (ButtonList[x] == NULL) return x;
	}
	throw std::runtime_error("No more button slots");
}
static INT32 GetNextButtonNumber ( void ) { for ( INT32 x = 1 ; x < MAX_BUTTONS ; x ++ ) { if ( ButtonList [ x ] == NULL ) return x ; } throw std :: runtime_error ( " " ) ; }
Finds the next available button slot.
Finds the next available button slot .
/* Never hand out ID 0.  Slot 0 is always a null pointer */