The path is pointing towards the source file that is generating the assertion failure... that would just mean that that's where the error is being thrown. That wouldn't indicate the actual argument being used that causes the failure. Since it doesn't appear to list the actual resource that's failing to load, it makes it a bit harder for someone not intimately knowledgeable about the source to track down the exact cause of failure, only the line number in the source code where the failure occurs.
Rose_Engine/Client/Interface/CTDrawImpl.cpp
- void CTDrawImpl::Draw( int iX, int iY, int iModuleID, int iGraphicID, D3DCOLOR color )
- {
- CImageRes* pImageRes = (CImageResManager::GetSingleton()).GetImageRes( iModuleID );
- if( pImageRes == NULL )
- {
- assert( pImageRes && "Get ImageRes failed" );
- return;
- }
-
- stTexture* pTextureInfo = pImageRes->GetTexture( iGraphicID );
- stSprite* pSpriteInfo = pImageRes->GetSprite( iGraphicID );
-
- if( pTextureInfo == NULL )
- {
- assert( pTextureInfo && "Get TextureInfo failed" );
- return;
- }
-
- if( pSpriteInfo == NULL )
- {
- assert( pSpriteInfo && "Get SpriteInfo failed");
- return;
- }
-
- HNODE hTexture = pTextureInfo->m_Texture;
-
- if( hTexture == NULL )
- {
- assert( hTexture && "Get Texture failed");
- return;
- }
-
- // Transform
- D3DXMATRIX mat;
- D3DXMatrixTranslation( &mat, (float)iX, (float)iY, 0 );
- ::setTransformSprite( mat );
-
- ::drawSprite( hTexture,
- &(pSpriteInfo->m_Rect),
- NULL,
- &D3DXVECTOR3( 0, 0 , 0 ),
- color );
- }
So this is occurring because pImageRes->GetTexture( iGraphicID ) is returning NULL. That, to me, would mean that iGraphicID is wrong.