diff --git a/src/NoteData.cpp b/src/NoteData.cpp index ece1d84872..d1287bfc84 100644 --- a/src/NoteData.cpp +++ b/src/NoteData.cpp @@ -1176,21 +1176,18 @@ void NoteData::LoadFromNode( const XNode* pNode ) FAIL_M("NoteData::LoadFromNode() not implemented"); } +// mapconv crashes on windows an apparently this function is the cause. +// So windows will still crash on courses that use transform mods until +// mapconv can be fixed. -Kyz +#ifndef WIN32 void NoteData::AddATIToList(all_tracks_iterator* iter) const { - // mapconv crashes on windows an apparently this function is the cause. - // So windows will still crash on courses that use transform mods until - // mapconv can be fixed. -Kyz -#ifndef WIN32 m_atis.insert(iter); -#endif } void NoteData::AddATIToList(all_tracks_const_iterator* iter) const { -#ifndef WIN32 m_const_atis.insert(iter); -#endif } void NoteData::RemoveATIFromList(all_tracks_iterator* iter) const @@ -1210,6 +1207,7 @@ void NoteData::RemoveATIFromList(all_tracks_const_iterator* iter) const m_const_atis.erase(pos); } } +#endif void NoteData::RevalidateATIs(vector const& added_or_removed_tracks, bool added) { @@ -1296,8 +1294,9 @@ template } m_vCurrentIters.push_back( cur ); } +#ifndef WIN32 m_pNoteData->AddATIToList(this); - +#endif Find( bReverse ); } @@ -1315,7 +1314,9 @@ NoteData::_all_tracks_iterator::_all_tracks_iterator( const _all_t COPY_OTHER( m_EndRow ) #undef COPY_OTHER { +#ifndef WIN32 m_pNoteData->AddATIToList(this); +#endif } template @@ -1323,7 +1324,9 @@ template { if(m_pNoteData != NULL) { +#ifndef WIN32 m_pNoteData->RemoveATIFromList(this); +#endif } } diff --git a/src/NoteData.h b/src/NoteData.h index 40033f1a2f..f64af07c30 100644 --- a/src/NoteData.h +++ b/src/NoteData.h @@ -152,10 +152,15 @@ private: mutable set m_atis; mutable set m_const_atis; + // mapconv crashes on windows an apparently this function is the cause. + // So windows will still crash on courses that use transform mods until + // mapconv can be fixed. -Kyz +#ifndef WIN32 void AddATIToList(all_tracks_iterator* iter) const; void AddATIToList(all_tracks_const_iterator* iter) const; void RemoveATIFromList(all_tracks_iterator* iter) const; void RemoveATIFromList(all_tracks_const_iterator* iter) const; +#endif public: void Init();