fix compiler warning
Merge pull request #2403 from mapycz/3.x-fix-vertext_last-warning

fix compiler warning