Visual Mode: fixed an issue where trying to apply a rotation to things that were not seen yet would cause a crash

This commit is contained in:
biwa 2023-09-06 19:20:12 +02:00
parent 3a7d926704
commit 809bb24ae0

View file

@ -1462,7 +1462,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Things are automatically selected on creation
foreach (Thing t in General.Map.Map.GetSelectedThings(true))
CreateVisualThing(t);
allthings[t] = CreateVisualThing(t);
// For linedefs it's a bit more complicated...
foreach (Linedef ld in General.Map.Map.GetSelectedLinedefs(true))