mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-07 08:21:10 +00:00
Fixed, Things mode: fixed a crash when switching to Things mode when more than 256 things were selected.
This commit is contained in:
parent
099f8d316c
commit
bf66e6a3ee
1 changed files with 1 additions and 1 deletions
|
@ -1018,13 +1018,13 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
// Make text labels for selected linedefs
|
||||
ICollection<Thing> orderedselection = General.Map.Map.GetSelectedThings(true);
|
||||
labels = new Dictionary<Thing, TextLabel>(orderedselection.Count);
|
||||
|
||||
// Otherwise significant delays will occure.
|
||||
// Also we probably won't care about selection ordering when selecting this many anyway
|
||||
if(orderedselection.Count > MAX_THING_LABELS) return;
|
||||
|
||||
int index = 0;
|
||||
labels = new Dictionary<Thing, TextLabel>(orderedselection.Count);
|
||||
foreach(Thing thing in orderedselection)
|
||||
{
|
||||
TextLabel l = new TextLabel();
|
||||
|
|
Loading…
Reference in a new issue