From: <lyn...@us...> - 2009-06-01 14:08:40
|
Revision: 6236 http://gemrb.svn.sourceforge.net/gemrb/?rev=6236&view=rev Author: lynxlupodian Date: 2009-06-01 14:08:22 +0000 (Mon, 01 Jun 2009) Log Message: ----------- don't destroy the gui if SetSaveGamePortrait doesn't find a portrait Modified Paths: -------------- gemrb/trunk/gemrb/plugins/GUIScript/GUIScript.cpp Modified: gemrb/trunk/gemrb/plugins/GUIScript/GUIScript.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/GUIScript/GUIScript.cpp 2009-06-01 11:39:07 UTC (rev 6235) +++ gemrb/trunk/gemrb/plugins/GUIScript/GUIScript.cpp 2009-06-01 14:08:22 UTC (rev 6236) @@ -3942,11 +3942,13 @@ ImageMgr* im = ( ImageMgr* ) core->GetInterface( IE_BMP_CLASS_ID ); if (im == NULL) { delete ( str ); - return NULL; + Py_INCREF( Py_None ); + return Py_None; } if (!im->Open( str, true )) { core->FreeInterface( im ); - return NULL; + Py_INCREF( Py_None ); + return Py_None; } Sprite2D* Picture = im->GetImage(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |