aboutsummaryrefslogtreecommitdiff
path: root/scumm/instrument.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-14 19:23:21 +0000
committerMax Horn2005-04-14 19:23:21 +0000
commit4b18be1cf74af2da60fc94e67faefb1e1dbe24e7 (patch)
tree69146a12ec4bbebe7a7fb8c912a988fa7835ff3f /scumm/instrument.cpp
parent1b76f9d0581c15bc9190cefddd71a7ca15d157f5 (diff)
downloadscummvm-rg350-4b18be1cf74af2da60fc94e67faefb1e1dbe24e7.tar.gz
scummvm-rg350-4b18be1cf74af2da60fc94e67faefb1e1dbe24e7.tar.bz2
scummvm-rg350-4b18be1cf74af2da60fc94e67faefb1e1dbe24e7.zip
Removing this casting operator. I changed the only place it was used to an 'error' a long time ago, and so far nobody reported anything about it.
svn-id: r17601
Diffstat (limited to 'scumm/instrument.cpp')
-rw-r--r--scumm/instrument.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp
index e2d78d815c..8d65368674 100644
--- a/scumm/instrument.cpp
+++ b/scumm/instrument.cpp
@@ -135,7 +135,6 @@ public:
void send (MidiChannel *mc);
void copy_to (Instrument *dest) { dest->program (_program, _mt32); }
bool is_valid() { return (_program < 128) && ((_native_mt32 == _mt32) || _native_mt32 ? (MidiDriver::_gmToMt32[_program] < 128) : (MidiDriver::_mt32ToGm[_program] < 128)); }
- operator int() { return (_program < 128) ? _program : 255; }
};
class Instrument_Adlib : public InstrumentInternal {