in lieu of a case-insensitive startswith

This commit is contained in:
Eidolon 2025-10-21 19:25:52 -05:00
parent 3d5639c864
commit c42de4ec8c

View file

@ -2451,7 +2451,8 @@ bool CallFunc_MusicRemap(ACSVM::Thread *thread, const ACSVM::Word *argV, ACSVM::
tune = tuneStr->str;
// Do not allow ACS to remap Stereo Mode tunes.
if (fasticmp("stere", tune))
if (strlen(tune) > 5
&& toupper(tune[0]) == 'S' && toupper(tune[1]) == 'T' && toupper(tune[2]) == 'E' && toupper(tune[3]) == 'R' && toupper(tune[4]) == 'E')
{
return false;
}