|
From: <sag...@us...> - 2010-05-24 17:07:34
|
Revision: 609
http://modplug.svn.sourceforge.net/modplug/?rev=609&view=rev
Author: saga-games
Date: 2010-05-24 17:07:27 +0000 (Mon, 24 May 2010)
Log Message:
-----------
[Fix] IsEmpty() did not always work as expected since it also compared the effect values, chaning the behaviour of some tracker functions (quick fix before making a release...).
Modified Paths:
--------------
trunk/OpenMPT/soundlib/modcommand.h
Modified: trunk/OpenMPT/soundlib/modcommand.h
===================================================================
--- trunk/OpenMPT/soundlib/modcommand.h 2010-05-23 23:58:24 UTC (rev 608)
+++ trunk/OpenMPT/soundlib/modcommand.h 2010-05-24 17:07:27 UTC (rev 609)
@@ -52,7 +52,8 @@
void Clear() {memset(this, 0, sizeof(MODCOMMAND));}
// Returns true if modcommand is empty, false otherwise.
- bool IsEmpty() const {return (*this == Empty());}
+ bool IsEmpty() const {return (this->note == 0 && this->instr == 0 && this->volcmd == 0 && this->command == 0);}
+ //bool IsEmpty() const {return (*this == Empty());}
// Returns true if instrument column represents plugin index.
bool IsInstrPlug() const {return IsPcNote();}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|