[Scummvm-cvs-logs] SF.net SVN: scummvm: [29684] scummvm/trunk/engines/lure/hotspots.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Dec 2 00:57:22 CET 2007


Revision: 29684
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29684&view=rev
Author:   dreammaster
Date:     2007-12-01 15:57:22 -0800 (Sat, 01 Dec 2007)

Log Message:
-----------
Changed assert for missing animation to explicitly give the animation Id

Modified Paths:
--------------
    scummvm/trunk/engines/lure/hotspots.cpp

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2007-12-01 17:56:24 UTC (rev 29683)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2007-12-01 23:57:22 UTC (rev 29684)
@@ -223,7 +223,8 @@
 		tempAnim = NULL;
 	else {
 		tempAnim = r.getAnimation(newAnimId); 
-		assert(tempAnim != NULL);
+		if (tempAnim == NULL)
+			error("Hotspot %xh tried to set non-existant Animation Id: %xh", _hotspotId, newAnimId);
 	}
 	
 	setAnimation(tempAnim);


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