EgtGraphics 2.2k2 :

- corretta CreateEGrScene in caso di errore ora restituisce nullptr.
This commit is contained in:
Dario Sassi
2020-11-19 15:22:58 +00:00
parent cb5ef01986
commit 6bccbd2575
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ CreateEGrScene( void)
{
// verifico la chiave e le opzioni
if ( ! TestKeyForEGr( GetEGrKey(), 0, GetEGrLogger()))
return false ;
return nullptr ;
// creo l'oggetto
return static_cast<IEGrScene*> ( new(nothrow) Scene) ;
}