aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/song.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/song.cpp')
-rw-r--r--src/base/song.cpp6
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);