As long as the hero palette is located in the first slot (slot 0), and no other palette overwrites that slot, that should never happen.
In your hex editor, this number is what palette slot the palette takes up.
In that case, it takes up slot number 4 (since 0 is one, etc...).
To make sure...