mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Check whether geobuffers is null before indexing it
This is an attempt to fix #474
This commit is contained in:
parent
9659ab1d19
commit
0b4b781980
1 changed files with 11 additions and 1 deletions
|
@ -104,7 +104,17 @@ namespace CodeImp.DoomBuilder.VisualModes
|
|||
|
||||
#region ================== Properties
|
||||
|
||||
internal VertexBuffer GeometryBuffer { get { return geobuffers[spriteframe]; } }
|
||||
internal VertexBuffer GeometryBuffer { get {
|
||||
if (geobuffers != null)
|
||||
{
|
||||
return geobuffers[spriteframe];
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
internal VertexBuffer CageBuffer { get { return cagebuffer; } } //mxd
|
||||
internal int CageLength { get { return cagelength; } } //mxd
|
||||
internal bool NeedsUpdateGeo { get { return updategeo; } }
|
||||
|
|
Loading…
Reference in a new issue