1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

Codefix: Fully initialise MidiFile::DataBlock to avoid gcc warning.

This commit is contained in:
2024-03-06 09:36:09 +00:00
parent 08ff1ab93e
commit 12ca151132

View File

@@ -18,7 +18,7 @@ struct MusicSongInfo;
struct MidiFile { struct MidiFile {
struct DataBlock { struct DataBlock {
uint32_t ticktime; ///< tick number since start of file this block should be triggered at uint32_t ticktime; ///< tick number since start of file this block should be triggered at
uint32_t realtime; ///< real-time (microseconds) since start of file this block should be triggered at uint32_t realtime = 0; ///< real-time (microseconds) since start of file this block should be triggered at
std::vector<byte> data; ///< raw midi data contained in block std::vector<byte> data; ///< raw midi data contained in block
DataBlock(uint32_t _ticktime = 0) : ticktime(_ticktime) { } DataBlock(uint32_t _ticktime = 0) : ticktime(_ticktime) { }
}; };