Jump to content

Removed building Facades are not handled from Planscreen

Aki Art
  • Branch: Live Branch Version: Windows Pending

A facade that has been removed from the game is handled to reset to a default skin on buildings; but the PlanScreen instance keeps a reference to the ID in field lastSelectedBuildingFacade, and does no checks if it still exists; crashing the game if it doesn't.

NullReferenceException: Object reference not set to an instance of an object
  at Def.GetFacadeUISprite (System.String facadeID) [0x0000b] in <8d3d5debc4074b28a2c8baaa0784686c>:0
  at PlanScreen.RefreshCopyBuildingButton (System.Object data) [0x00113] in <8d3d5debc4074b28a2c8baaa0784686c>:0

Steps to Reproduce

- Build any building with a facade selected

- Save game

- Remove the skin from the game

- Load game, select the building

- Crash

  • Big Ups 1

User Feedback

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...