1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

more tests

This commit is contained in:
Robin Appelman 2021-07-22 22:29:55 +02:00
commit 431d91ad9a
2 changed files with 2 additions and 2 deletions

View file

@ -560,7 +560,7 @@ fn test_packet_entitier_message_roundtrip() {
value: SendPropValue::Integer(4),
},
SendProp {
index: 3,
index: 2,
identifier: SendPropIdentifier::new("table2", "prop3"),
value: SendPropValue::Float(1.0),
},

View file

@ -61,7 +61,7 @@ impl EntityDump {
.props
.into_iter()
.map(|prop| {
let (table_name, prop_name) = &prop_names[&prop.index];
let (table_name, prop_name) = &prop_names[&prop.identifier];
(format!("{}.{}", table_name, prop_name), prop.value)
})
.collect(),