X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Fshared%2Fmapstructio.inc;h=f17a47654190bf5149458679bfde3ad273e12bb3;hp=d1198d539aadee69b5e2961350d172dcc20f6cb8;hb=8c19c641c31c73e2603a8230fbf7e83948a4feea;hpb=3f6a265be15702407d13e055359463f27dd3e742 diff --git a/src/shared/mapstructio.inc b/src/shared/mapstructio.inc index d1198d5..f17a476 100644 --- a/src/shared/mapstructio.inc +++ b/src/shared/mapstructio.inc @@ -184,7 +184,7 @@ procedure mb_Read_TriggerData (var tr: TTriggerData; ttype: Integer; const buf; begin getWordAt(tr.DamageValue, buf, 0); getWordAt(tr.DamageInterval, buf, 2); - getBytesAt(tr.DamageKind, buf, 4); + getBytesAt(tr.DamageKind, buf, 4, 1); end; procedure xreadHealth (); @@ -496,7 +496,7 @@ procedure mb_Write_TriggerData (var buf; bufsize: Integer; ttype: Integer; var t begin putWordAt(buf, 0, tr.DamageValue); putWordAt(buf, 2, tr.DamageInterval); - putBytesAt(buf, 4, tr.DamageKind); + putBytesAt(buf, 4, tr.DamageKind, 1); end; procedure xwriteHealth ();