1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 18:44:12 +02:00

cow stringtable

This commit is contained in:
Robin Appelman 2020-12-06 17:42:15 +01:00
commit 9f0acad361
7 changed files with 29 additions and 16 deletions

View file

@ -160,7 +160,7 @@ impl SendPropDefinition {
index: SendPropDefinitionIndex,
) -> ReadResult<Self> {
let prop_type = SendPropType::read(stream)?;
let name = stream.read_string(None)?.into();
let name = stream.read_string(None)?.to_string().into();
let flags = SendPropFlags::read(stream)?;
let mut table_name = None;
let mut element_count = None;