fix bug pointed out by tafoid (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@23328 749742ba-7341-0410-aadc-df50b521781e