diff --git a/stepmania/src/SubscriptionManager.h b/stepmania/src/SubscriptionManager.h index 0324e1c7d1..02faed01f3 100644 --- a/stepmania/src/SubscriptionManager.h +++ b/stepmania/src/SubscriptionManager.h @@ -20,6 +20,15 @@ public: // m_pSubscribers == NULL (before any static constructors are called). set* m_pSubscribers; + // Use this to access m_pSubscribers, so you don't have to worry about + // it being NULL. + set &Get() + { + if( m_pSubscribers == NULL ) + m_pSubscribers = new set; + return *m_pSubscribers; + } + void Subscribe( T* p ) { if( m_pSubscribers == NULL )