From: cloudwalk Date: Tue, 2 Jun 2020 14:03:06 +0000 (+0000) Subject: Add missed check for prvm_garbagecollection_enable in LOAD_S opcode X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c472e8aa47646849b2757e5077e8d0bf1d3538f9;p=xonotic%2Fdarkplaces.git 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 --- 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):