Author: sagamusix
Date: Wed Mar 13 19:04:43 2024
New Revision: 20318
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20318
Log:
[Fix] r20253 was incomplete, now XMPlay received some garbage subtune information because only one subtune info was populated.
Modified:
trunk/OpenMPT/libopenmpt/xmp-openmpt/xmp-openmpt.cpp
Modified: trunk/OpenMPT/libopenmpt/xmp-openmpt/xmp-openmpt.cpp
==============================================================================
--- trunk/OpenMPT/libopenmpt/xmp-openmpt/xmp-openmpt.cpp Wed Mar 13 12:22:17 2024 (r20317)
+++ trunk/OpenMPT/libopenmpt/xmp-openmpt/xmp-openmpt.cpp Wed Mar 13 19:04:43 2024 (r20318)
@@ -707,9 +707,6 @@
if ( subsong >= 0 && static_cast<size_t>( subsong ) < subsong_names.size() ) {
first_subsong += subsong;
last_subsong = first_subsong + 1;
- } else
- {
- last_subsong = first_subsong + 1;
}
for ( auto subsong_name = first_subsong; subsong_name != last_subsong; subsong_name++ ) {
|