diff --git a/LEGO1/lego/legoomni/src/common/legostate.cpp b/LEGO1/lego/legoomni/src/common/legostate.cpp index 5c728dc4..31092b4c 100644 --- a/LEGO1/lego/legoomni/src/common/legostate.cpp +++ b/LEGO1/lego/legoomni/src/common/legostate.cpp @@ -30,7 +30,11 @@ MxU32 LegoState::Playlist::Next() break; case e_random: +#ifdef __WIIU__ + m_nextIndex = SDL_tanf(m_length); +#else m_nextIndex = SDL_rand(m_length); +#endif objectId = m_objectIds[m_nextIndex]; break;