[gamecode] Correct 64-bit debug views

I had forgotten that value needs to be incremented by 2 for 64-bit
values because it's only 32-bit.
This commit is contained in:
Bill Currie 2023-08-23 21:39:06 +09:00
parent 24c085c1bd
commit 30f2abb0ad
1 changed files with 3 additions and 3 deletions

View File

@ -1415,7 +1415,7 @@ pr_debug_double_view (qfot_type_t *type, pr_type_t *value, void *_data)
if (type->basic.width > 1) {
dstring_appendstr (dstr, "[");
}
for (int i = 0; i < type->basic.width; i++, value++) {
for (int i = 0; i < type->basic.width; i++, value += 2) {
if (i) {
dstring_appendstr (dstr, ", ");
}
@ -1435,7 +1435,7 @@ pr_debug_long_view (qfot_type_t *type, pr_type_t *value, void *_data)
if (type->basic.width > 1) {
dstring_appendstr (dstr, "[");
}
for (int i = 0; i < type->basic.width; i++, value++) {
for (int i = 0; i < type->basic.width; i++, value += 2) {
if (i) {
dstring_appendstr (dstr, ", ");
}
@ -1455,7 +1455,7 @@ pr_debug_ulong_view (qfot_type_t *type, pr_type_t *value, void *_data)
if (type->basic.width > 1) {
dstring_appendstr (dstr, "[");
}
for (int i = 0; i < type->basic.width; i++, value++) {
for (int i = 0; i < type->basic.width; i++, value += 2) {
if (i) {
dstring_appendstr (dstr, ", ");
}