mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[c] Fix Atlas line length calculation, closes #1925
This commit is contained in:
parent
2824e22846
commit
620b926dd5
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.19)
|
||||
cmake_minimum_required(VERSION 3.17)
|
||||
project(spine)
|
||||
|
||||
if(MSVC)
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user