[Scummvm-cvs-logs] SF.net SVN: scummvm: [27054] scummvm/trunk/engines/saga/interface.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Jun 2 17:21:42 CEST 2007


Revision: 27054
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27054&view=rev
Author:   thebluegr
Date:     2007-06-02 08:21:42 -0700 (Sat, 02 Jun 2007)

Log Message:
-----------
Moved a sanity check before some relevant asserts

Modified Paths:
--------------
    scummvm/trunk/engines/saga/interface.cpp

Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp	2007-06-02 15:20:43 UTC (rev 27053)
+++ scummvm/trunk/engines/saga/interface.cpp	2007-06-02 15:21:42 UTC (rev 27054)
@@ -534,13 +534,14 @@
 }
 
 void Interface::setStatusText(const char *text, int statusColor) {
-	assert(text != NULL);
-	assert(strlen(text) < STATUS_TEXT_LEN);
 
 	// Disable the status text in IHNM when the chapter is 8
 	if (_vm->getGameType() == GType_IHNM && _vm->_scene->currentChapterNumber() == 8)
 		return;
 
+	assert(text != NULL);
+	assert(strlen(text) < STATUS_TEXT_LEN);
+
 	if (_vm->_render->getFlags() & (RF_PLACARD | RF_MAP))
 		return;
 


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