[Scummvm-cvs-logs] SF.net SVN: scummvm:[42850] scummvm/branches/branch-1-0-0/sound/fmopl.h

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Jul 27 20:28:46 CEST 2009


Revision: 42850
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42850&view=rev
Author:   lordhoto
Date:     2009-07-27 18:28:46 +0000 (Mon, 27 Jul 2009)

Log Message:
-----------
Backport of r42849: Oops enabled HACK to prevent multiple OPL instances again.

Modified Paths:
--------------
    scummvm/branches/branch-1-0-0/sound/fmopl.h

Modified: scummvm/branches/branch-1-0-0/sound/fmopl.h
===================================================================
--- scummvm/branches/branch-1-0-0/sound/fmopl.h	2009-07-27 18:19:16 UTC (rev 42849)
+++ scummvm/branches/branch-1-0-0/sound/fmopl.h	2009-07-27 18:28:46 UTC (rev 42850)
@@ -94,7 +94,7 @@
 	// TODO: This is part of a temporary HACK to allow only 1 instance
 	static bool _hasInstance;
 public:
-	OPL() { _hasInstance = true; }
+	OPL() { assert(!_hasInstance); _hasInstance = true; }
 	virtual ~OPL() { _hasInstance = 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