Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
b22ed373
Commit
b22ed373
authored
Apr 19, 2022
by
Dino Bollinger
Browse files
Duke3D: Print script name and line if gamevar/struct index error occurs
parent
724ca0c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/duke3d/src/gamevars.cpp
View file @
b22ed373
...
...
@@ -997,7 +997,7 @@ static int __fastcall Gv_GetArrayOrStruct(int const gameVar, int const spriteNum
return
returnValue
;
badindex:
LOG_F
(
ERROR
,
"Invalid index %d for '%s'"
,
returnValue
,
LOG_F
(
ERROR
,
"
%s:%d:
Invalid index %d for '%s'"
,
VM_FILENAME
(
insptr
),
VM_DECODE_LINE_NUMBER
(
g_tw
),
returnValue
,
(
gameVar
&
GV_FLAG_ARRAY
)
?
aGameArrays
[
gv
].
szLabel
:
aGameVars
[
gv
].
szLabel
);
return
-
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment