[Scummvm-cvs-logs] SF.net SVN: scummvm:[49575] scummvm/trunk/engines/sci/engine/state.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Jun 10 16:02:21 CEST 2010


Revision: 49575
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49575&view=rev
Author:   thebluegr
Date:     2010-06-10 14:02:20 +0000 (Thu, 10 Jun 2010)

Log Message:
-----------
Don't attempt to modify the printLang selector if it doesn't exist

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/state.cpp

Modified: scummvm/trunk/engines/sci/engine/state.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/state.cpp	2010-06-10 14:01:30 UTC (rev 49574)
+++ scummvm/trunk/engines/sci/engine/state.cpp	2010-06-10 14:02:20 UTC (rev 49575)
@@ -275,7 +275,8 @@
 }
 
 void SciEngine::setSciLanguage(kLanguage lang) {
-	writeSelectorValue(_gamestate->_segMan, _gameObj, SELECTOR(printLang), lang);
+	if (SELECTOR(printLang) != -1)
+		writeSelectorValue(_gamestate->_segMan, _gameObj, SELECTOR(printLang), lang);
 }
 
 void SciEngine::setSciLanguage() {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list