[Scummvm-cvs-logs] SF.net SVN: scummvm:[40794] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat May 23 01:08:58 CEST 2009


Revision: 40794
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40794&view=rev
Author:   lordhoto
Date:     2009-05-22 23:08:58 +0000 (Fri, 22 May 2009)

Log Message:
-----------
struct Button contains non POD members, thus don't use memset on it.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/gui_lol.cpp
    scummvm/trunk/engines/kyra/script_lol.cpp

Modified: scummvm/trunk/engines/kyra/gui_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_lol.cpp	2009-05-22 22:43:13 UTC (rev 40793)
+++ scummvm/trunk/engines/kyra/gui_lol.cpp	2009-05-22 23:08:58 UTC (rev 40794)
@@ -1523,7 +1523,6 @@
 	gui_toggleButtonDisplayMode(77, 1);
 
 	Button b;
-	memset(&b, 0, sizeof(Button));
 	b.data0Val2 = b.data1Val2 = b.data2Val2 = 0xfe;
 	b.data0Val3 = b.data1Val3 = b.data2Val3 = 0x01;
 

Modified: scummvm/trunk/engines/kyra/script_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_lol.cpp	2009-05-22 22:43:13 UTC (rev 40793)
+++ scummvm/trunk/engines/kyra/script_lol.cpp	2009-05-22 23:08:58 UTC (rev 40794)
@@ -138,7 +138,6 @@
 		mode = (mode - 6 - _currentDirection) & 3;
 
 	Button b;
-	memset(&b, 0, sizeof(Button));
 	b.data0Val2 = b.data1Val2 = b.data2Val2 = 0xfe;
 	b.data0Val3 = b.data1Val3 = b.data2Val3 = 0x01;
 


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