diff --git a/gfx/d3d9/d3d9_pc.cpp b/gfx/d3d9/d3d9_pc.cpp index 6490144d63..89f077125f 100644 --- a/gfx/d3d9/d3d9_pc.cpp +++ b/gfx/d3d9/d3d9_pc.cpp @@ -180,7 +180,7 @@ bool d3d_init_imports(void *data) tracker_info.info_elem = d3d->shader.variables; #ifdef HAVE_PYTHON - if (*shader.script_path) + if (*d3d->shader.script_path) { tracker_info.script = d3d->shader.script_path; tracker_info.script_is_file = true;