From c472e8aa47646849b2757e5077e8d0bf1d3538f9 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Tue, 2 Jun 2020 14:03:06 +0000 Subject: [PATCH] Add missed check for prvm_garbagecollection_enable in LOAD_S opcode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12624 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_execprogram.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prvm_execprogram.h b/prvm_execprogram.h index a6c45c98..60a112c1 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -428,7 +428,8 @@ extern cvar_t prvm_garbagecollection_enable; // against a certain sort of repeated migration to earlier // points in the scan that could otherwise result in the string // being freed for being unused - PRVM_GetString(prog, OPC->_int); + if(prvm_garbagecollection_enable.integer) + PRVM_GetString(prog, OPC->_int); DISPATCH_OPCODE(); HANDLE_OPCODE(OP_LOAD_V): -- 2.39.2