From: fgsfds Date: Mon, 5 Aug 2019 22:35:35 +0000 (+0300) Subject: whoops, how did this work before X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=8c19c641c31c73e2603a8230fbf7e83948a4feea;p=d2df-editor.git whoops, how did this work before --- 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 ();