diff --git a/src/engine/instrument.cpp b/src/engine/instrument.cpp index ce25d87a5..1d8dbe7c1 100644 --- a/src/engine/instrument.cpp +++ b/src/engine/instrument.cpp @@ -609,7 +609,7 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version) { type=(DivInstrumentType)reader.readS(); } if (!istest) { - type=(DivInstrumentType)reader.readC(); + type=(DivInstrumentType)((unsigned char)reader.readC()); } mode=(type==DIV_INS_FM); reader.readC();