GZDoomBuilder 1.05b:

Actors, which can't be placed in editing mode aren't added to MODELDEF override list, thus preventing crash on map open.
This commit is contained in:
MaxED 2012-05-13 21:21:29 +00:00
parent 14e6c959bd
commit 5d58612d05

View file

@ -110,8 +110,10 @@ namespace CodeImp.DoomBuilder.GZBuilder
//and for actors defined in DECORATE
ICollection<ActorStructure> ac = General.Map.Data.Decorate.Actors;
foreach (ActorStructure actor in General.Map.Data.Decorate.Actors)
Actors.Add(actor.ClassName.ToLower(), actor.DoomEdNum);
foreach (ActorStructure actor in ac) {
if (actor.DoomEdNum != -1) //we don't need actors without DoomEdNum
Actors.Add(actor.ClassName.ToLower(), actor.DoomEdNum);
}
Dictionary<string, ModelDefEntry> modelDefEntriesByName = new Dictionary<string, ModelDefEntry>();