lewa-j / Unity-Source-Tools

Plugin to import resources from the Source engine in Unity3D.
GNU General Public License v2.0
109 stars 22 forks source link

SourceBSPLoader Line 657: Index outside the bounds of array #41

Open Fronkln opened 4 years ago

Fronkln commented 4 years ago

Map: demo_arctic BSP Version:18 (Half-Life 2 Leak)

image

Load: 47 TextureData's Load: 17981 Vertexes Load: 1391 TexInfos Load :49312 Edges Load :83899 SurfEdges Load: 49 Models Load: 115 DispInfos Load: 11395 DispVerts Load: 2 GameLumps Load :1009 TexDataStringData Load :48 TexDataStringsTable

demo_arctic.zip

Fronkln commented 4 years ago

FIX! Very specific conditions prevented bsp faces from EVER loading.

Adding this line to BSPFile line 95 solves it. image

lewa-j commented 4 years ago

I see another error. In third line should be &&, not &.