Commit b22ed373 authored by Dino Bollinger's avatar Dino Bollinger
Browse files

Duke3D: Print script name and line if gamevar/struct index error occurs

parent 724ca0c4
......@@ -997,7 +997,7 @@ static int __fastcall Gv_GetArrayOrStruct(int const gameVar, int const spriteNum
return returnValue;
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment