Index: soundlib/Load_dsm.cpp
===================================================================
--- soundlib/Load_dsm.cpp	(revision 11205)
+++ soundlib/Load_dsm.cpp	(working copy)
@@ -257,14 +257,13 @@
 
 			ModCommand dummy = ModCommand::Empty();
 			ROWINDEX row = 0;
-			PatternRow rowBase = Patterns[patNum].GetRow(0);
 			while(chunk.CanRead(1) && row < 64)
 			{
+				PatternRow rowBase = Patterns[patNum].GetRow(row);
 				uint8 flag = chunk.ReadUint8();
 				if(!flag)
 				{
 					row++;
-					rowBase = Patterns[patNum].GetRow(row);
 					continue;
 				}
 
