Game crashes when attempting construction

Version: 0.5-314-g1f4459a-dirty

Game crashes after selecting a task in the construction menu, but before being asked to choose a direction to build. Strangely, the crash occurs in the MinGW compile, but doesn’t occur in the MinGW+Code::Blocks compile.