MADS: Implement scene 319
MADS: Fix compilation warning