[c] Fix Atlas line length calculation, closes #1925

This commit is contained in:
badlogic 2021-07-23 16:05:23 +02:00
parent 2824e22846
commit 620b926dd5
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.19)
cmake_minimum_required(VERSION 3.17)
project(spine)
if(MSVC)

View File

@ -220,7 +220,7 @@ static SimpleString *ai_readLine(AtlasInput *self) {
self->line.end = self->index;
if (self->index != self->end) self->index++;
self->line = *ss_trim(&self->line);
self->line.length = self->end - self->start;
self->line.length = self->line.end - self->line.start;
return &self->line;
}