deleting residental in vikings then building causes internal error


If you delete a residental then try to build another building right away, it will let you instead of greying it out. There's a delay in between the pop being unavailable and the building getting greyed out, causing an internal error if you build in that time.

Haven't seen this in city, just settlement.