Skip to content

Commit

Permalink
Fix inconsistent linkage issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 1, 2015
1 parent 5d63a89 commit 09c8acb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xrEngine/GameMtlLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#include "Common/FSMacros.hpp"

CGameMtlLibrary GMLib;
#ifdef _EDITOR
CGameMtlLibrary *PGMLib = nullptr;
#endif

#ifdef DEBUG
const char *SGameMtlPair::dbg_Name()
Expand Down Expand Up @@ -63,7 +65,9 @@ CGameMtlLibrary::CGameMtlLibrary()
{
material_index = 0;
material_pair_index = 0;
#ifdef _EDITOR
PGMLib = &GMLib;
#endif
}

void CGameMtlLibrary::Load()
Expand Down

0 comments on commit 09c8acb

Please sign in to comment.