Skip to content

Commit 09c8acb

Browse files
author
nitrocaster
committed
Fix inconsistent linkage issue.
1 parent 5d63a89 commit 09c8acb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/xrEngine/GameMtlLib.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
#include "Common/FSMacros.hpp"
44

55
CGameMtlLibrary GMLib;
6+
#ifdef _EDITOR
67
CGameMtlLibrary *PGMLib = nullptr;
8+
#endif
79

810
#ifdef DEBUG
911
const char *SGameMtlPair::dbg_Name()
@@ -63,7 +65,9 @@ CGameMtlLibrary::CGameMtlLibrary()
6365
{
6466
material_index = 0;
6567
material_pair_index = 0;
68+
#ifdef _EDITOR
6669
PGMLib = &GMLib;
70+
#endif
6771
}
6872

6973
void CGameMtlLibrary::Load()

0 commit comments

Comments
 (0)