http://prntscr.com/2385hq 是我打开 .exe 文件时遇到的错误。
这是它说错误的代码:
else
{
if (NewUserGrid[Actor.Position.X, Actor.Position.Y] == null)
{
NewUserGrid[Actor.Position.X, Actor.Position.Y] = new List<RoomActor>();
}
NewUserGrid[Actor.Position.X, Actor.Position.Y].Add(Actor);
}
这句话是错误的
if (NewUserGrid[Actor.Position.X, Actor.Position.Y] == null)