fix crash in release - that bug has been in forever? does this show up now because of the compiler/platform upgrade?

This commit is contained in:
ttimo 2022-11-14 14:07:56 -06:00
parent 7c513161b1
commit 28fe20b384
1 changed files with 2 additions and 3 deletions

View File

@ -403,13 +403,12 @@ void CSynapseServer::PushRequired( CSynapseClient *pClient ){
std::list<CSynapseClientSlot>::iterator iClientSlot;
for ( iClientSlot = mClients.begin(); iClientSlot != mClients.end(); iClientSlot++ )
{
CSynapseClient *pScanClient = ( *iClientSlot ).
mpClient;
CSynapseClient *pScanClient = ( *iClientSlot ).mpClient;
int j,jmax = pScanClient->GetAPICount();
for ( j = 0; j < jmax; j++ )
{
APIDescriptor_t *pAPI = pScanClient->GetAPIDescriptor( j );
if ( pAPI->mType == SYN_PROVIDE ) {
if ( pAPI != NULL && pAPI->mType == SYN_PROVIDE ) {
if ( pManager->MatchAPI( pAPI->major_name, pAPI->minor_name ) ) {
/*! we are going to want to load this one
* NOTE TTimo: what if this can not be resolved in the end?