aboutsummaryrefslogtreecommitdiff
path: root/gob
diff options
context:
space:
mode:
Diffstat (limited to 'gob')
-rw-r--r--gob/inter.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gob/inter.cpp b/gob/inter.cpp
index e56c5aefe8..6a197b7902 100644
--- a/gob/inter.cpp
+++ b/gob/inter.cpp
@@ -420,7 +420,12 @@ void inter_drawOperations(void) {
case 33:
// Used in gob1 CD
- WRITE_VAR(5, cd_getTrackPos());
+ {
+ int pos = cd_getTrackPos();
+ if (pos == -1)
+ pos = 32767;
+ WRITE_VAR(5, pos);
+ }
break;
case 34: