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:
parent
c0b175596a
commit
f21c7a0e47
5 changed files with 16806 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue