From c0d13ba04f445d03b4484960dceaad10ba194095 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 30 Nov 2006 01:55:52 +0000 Subject: [PATCH] set directly --- stepmania/src/RageSoundPosMap.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageSoundPosMap.cpp b/stepmania/src/RageSoundPosMap.cpp index 06fffbd8d8..0e530e2b60 100644 --- a/stepmania/src/RageSoundPosMap.cpp +++ b/stepmania/src/RageSoundPosMap.cpp @@ -23,7 +23,6 @@ struct pos_map_t int64_t m_iFrames; pos_map_t() { m_iSourceFrame = 0; m_iDestFrame = 0; m_iFrames = 0; } - pos_map_t( int64_t iSourceFrame, int iDestFrame, int iFrames ) { m_iSourceFrame = iSourceFrame; m_iDestFrame = iDestFrame; m_iFrames = iFrames; } }; struct pos_map_impl @@ -69,7 +68,11 @@ void pos_map_queue::Insert( int64_t iSourceFrame, int iDestFrame, int iFrames ) } } - m_pImpl->m_Queue.push_back( pos_map_t(iSourceFrame, iDestFrame, iFrames) ); + m_pImpl->m_Queue.push_back( pos_map_t() ); + pos_map_t &m = m_pImpl->m_Queue.back(); + m.m_iSourceFrame = iSourceFrame; + m.m_iDestFrame = iDestFrame; + m.m_iFrames = iFrames; m_pImpl->Cleanup(); }