1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-09 01:56:47 -05:00

d2ds1: fixed bug, when (if version was >= v16), the file was encoded incorrectly

This commit is contained in:
gucio321 2021-04-07 19:13:34 +02:00
parent 7ce4583fe1
commit e48bc48aab

View File

@ -572,7 +572,7 @@ func (ds1 *DS1) Marshal() []byte {
sw.PushInt32(int32(len(ds1.Walls)))
if ds1.version.specifiesFloors() {
sw.PushInt32(int32(len(ds1.Walls)))
sw.PushInt32(int32(len(ds1.Floors)))
}
}