mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10986] Fixed linking porblem for scripting library.
Visual Studio have known porblems with make public (in DLL access meaning) for private fields accessed by public inline functions.
This commit is contained in:
parent
324c8c4cd2
commit
287229bfdb
3 changed files with 8 additions and 2 deletions
|
|
@ -92,3 +92,9 @@ void barGoLink::step()
|
|||
rec_pos = n;
|
||||
}
|
||||
}
|
||||
|
||||
// avoid use inline version because linking problems with private static field
|
||||
void barGoLink::SetOutputState(bool on)
|
||||
{
|
||||
m_showOutput = on;
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ class MANGOS_DLL_SPEC barGoLink
|
|||
public: // modifiers
|
||||
void step( void );
|
||||
|
||||
static void SetOutputState(bool on) { m_showOutput = on; }
|
||||
static void SetOutputState(bool on);
|
||||
private:
|
||||
static bool m_showOutput; // not recommended change with existed active bar
|
||||
static char const * const empty;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10985"
|
||||
#define REVISION_NR "10986"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue