diff options
Diffstat (limited to '')
-rw-r--r-- | src/base/song.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/base/song.cpp b/src/base/song.cpp index e1b39360..f596e480 100644 --- a/src/base/song.cpp +++ b/src/base/song.cpp @@ -121,10 +121,8 @@ namespace usdx LyricLine* Song::get_last_lyric_line(void) { - LyricLine* line = lyrics.back(); - - if (line) { - return line; + if (lyrics.size() > 0) { + return lyrics.back(); } return create_new_lyric_line(0); |