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

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Mon Sep 8 23:57:39 CEST 2008


Revision: 34454
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34454&view=rev
Author:   athrxx
Date:     2008-09-08 21:57:38 +0000 (Mon, 08 Sep 2008)

Log Message:
-----------
HOF: msvc8 compile fix (ARRAYSIZE used with run-time allocated array)

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/scene_hof.cpp

Modified: scummvm/trunk/engines/kyra/scene_hof.cpp
===================================================================
--- scummvm/trunk/engines/kyra/scene_hof.cpp	2008-09-08 21:54:04 UTC (rev 34453)
+++ scummvm/trunk/engines/kyra/scene_hof.cpp	2008-09-08 21:57:38 UTC (rev 34454)
@@ -517,7 +517,7 @@
 
 void KyraEngine_HoF::initSceneAnims(int unk1) {
 	debugC(9, kDebugLevelMain, "KyraEngine_HoF::initSceneAnims(%d)", unk1);
-	for (int i = 0; i < ARRAYSIZE(_animObjects); ++i)
+	for (int i = 0; i < 41; ++i)
 		_animObjects[i].enabled = 0;
 
 	bool animInit = false;


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