fire-eggs / CivOne

An open source implementation of Sid Meier's Civilization 1 using C# and .NET.
Creative Commons Zero v1.0 Universal
20 stars 4 forks source link

RuntimeHandler.OnDraw: Exception has occurred: CLR/System.NullReferenceException #143

Open iegik opened 2 years ago

iegik commented 2 years ago
Runtime.Palette = Common.TopScreen.Palette.Copy();
^
Exception has occurred: CLR/System.NullReferenceException
An unhandled exception of type 'System.NullReferenceException' occurred in CivOne.dll: 'Object reference not set to an instance of an object.'
   at CivOne.RuntimeHandler.OnDraw(Object sender, EventArgs args) in CivOne/src/RuntimeHandler.cs:line 103
   at CivOne.Runtime.InvokeDraw() in CivOne/runtime/sdl/src/Runtime.cs:line 29
   at CivOne.GameWindow.Draw(Object sender, EventArgs args) in CivOne/runtime/sdl/src/GameWindow.cs:line 56
   at CivOne.SDL.Window.Run() in CivOne/runtime/sdl/src/SDL/Window.cs:line 96
   at CivOne.Program.Main(String[] args) in CivOne/runtime/sdl/src/Program.cs:line 89

(need more info)