Cleanup the fix.

This commit is contained in:
TC1995
2025-07-10 01:57:23 +02:00
parent dbbc49dc17
commit ef17a9f3f2
2 changed files with 6 additions and 2 deletions

View File

@@ -306,6 +306,9 @@ gameport_remap(void *priv, uint16_t address)
gameport_t *dev = (gameport_t *) priv;
gameport_t *other_dev;
if (dev == NULL)
return;
if (dev->addr) {
/* Remove this port from the active ports list. */
if (active_gameports == dev) {