From 8c19c641c31c73e2603a8230fbf7e83948a4feea Mon Sep 17 00:00:00 2001 From: fgsfds Date: Tue, 6 Aug 2019 01:35:35 +0300 Subject: [PATCH] whoops, how did this work before --- src/shared/mapstructio.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (); -- 2.29.2