Commit 3b5b69cb97 changed the logic to store the result of hmp_open into a local that was destroyed at the end of the function. This was incorrect, as destruction of the returned value will immediately halt the music. Revert to the previous behavior, where the result is written to the global `cur_hmp` so that it persists past the end of the function. Reported-by: norbert79 <https://github.com/dxx-rebirth/dxx-rebirth/issues/634> Analyzed-by: AlumiuN <https://github.com/dxx-rebirth/dxx-rebirth/issues/634#issuecomment-1110510761> Proposed-fix-by: AlumiuN <https://github.com/dxx-rebirth/dxx-rebirth/issues/634#issuecomment-1110510761> Fixes: 3b5b69cb97 ("Improve error reporting for hmp_open / hmp2mid")
3b5b69cb97