From: Willem J. P. <wjp...@us...> - 2007-01-07 14:35:14
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv23380/plugins/Core Modified Files: GameControl.cpp Log Message: fix crash in PS:T save dialog Index: GameControl.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/GameControl.cpp,v retrieving revision 1.302 retrieving revision 1.303 diff -C2 -d -r1.302 -r1.303 *** GameControl.cpp 30 Dec 2006 19:11:16 -0000 1.302 --- GameControl.cpp 7 Jan 2007 14:35:10 -0000 1.303 *************** *** 1893,1896 **** --- 1893,1899 ---- Actor *actor = core->GetGame()->GetPC( pcslot, false ); + if (! actor) { + return NULL; + } DataStream *str = core->GetResourceMgr()->GetResource( actor->GetPortrait( true ), IE_BMP_CLASS_ID ); if (! str) { |