Fix #58: Properly fetch resource type when flag is demolished.