Core/Misc: Fix a compile warning.

Properly fix #11229 since eacf961e7299afc0627e146d204d94baa1a09d80 changes didn't affect the original issue.