diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index c6db354..5ac8d22 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -2550,7 +2550,7 @@ void handleCopy(void) void handlePaste(void) { if(clipboard != NULL) { - int ptn_n_rows = song->getPatternLength(state->potpos); + int ptn_n_rows = song->getPatternLength(song->getPotEntry(state->potpos)); int n_channels = song->getChannels(); u8 rows_over = std::max((s16)(clipboard->height() + state->getCursorRow()) - ptn_n_rows, 0); u8 cols_over = std::max((s16)(clipboard->width() + state->channel) - n_channels, 0); @@ -4249,4 +4249,4 @@ int main(int argc, char **argv) { if (launch_path) ntxm_free(launch_path); return 0; -} \ No newline at end of file +}