diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-09-26 09:35:44 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-09-26 09:35:44 -0400 |
| commit | 5e27b4799853161ebf8e056e6d842fc5eda1e92c (patch) | |
| tree | 5a11e71dd95d75ae91dacfd3548623d3202b2614 /src | |
| parent | eb48a3affea5514811eed488f8c87aba066b062c (diff) | |
pke: deserialize empty string
Diffstat (limited to 'src')
| -rw-r--r-- | src/serialization.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialization.cpp b/src/serialization.cpp index dbf9646..63415e0 100644 --- a/src/serialization.cpp +++ b/src/serialization.cpp @@ -208,7 +208,7 @@ void pke_deserialize_scene_from_stream(std::istream &i, srlztn_deserialize_helpe assert(strstr(read_line, SRLZTN_FILE_VERSION) != 0); while (i.getline(read_line, read_line_len)) { - if (strlen(read_line) == 0 && state != 1) continue; + if (strlen(read_line) == 0 && (state != 1 && state != 2)) continue; if (strstr(read_line, SRLZTN_FILE_END) == read_line) continue; // new object if (state == 0) { |
