1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

Fix getPropByDefinition for encoding

This commit is contained in:
Robin Appelman 2017-09-15 22:46:50 +02:00
commit f21c7a0e47
5 changed files with 16806 additions and 2 deletions

View file

@ -30,7 +30,7 @@ export class PacketEntity {
public getPropByDefinition(definition: SendPropDefinition) {
for (const prop of this.props) {
if (prop.definition === definition) {
if (prop.definition.fullName === definition.fullName) {
return prop;
}
}

View file

@ -13,7 +13,7 @@ export class SendPropDefinition {
public arrayProperty: SendPropDefinition | null;
public ownerTableName: string;
constructor(type, name, flags, ownerTableName) {
constructor(type: SendPropType, name: string, flags: number, ownerTableName: string) {
this.type = type;
this.name = name;
this.flags = flags;