1

Topic: Copy/paste issue

Hi,

It's my first post here. I don't know how do some feedbacks to the development team?
So, in the source file snapshot.cpp, i found this error :

int CSnapshotStorage::Get(int Tick, int64 *pTagtime, CSnapshot **ppData, CSnapshot **ppAltData)
{
    CHolder *pHolder = m_pFirst;

    while(pHolder)
    {
        if(pHolder->m_Tick == Tick)
        {
            if(pTagtime)
                *pTagtime = pHolder->m_Tagtime;
            if(ppData)
                *ppData = pHolder->m_pSnap;
            if(ppAltData)
                *ppData = pHolder->m_pAltSnap;    <---- *ppAltData= pHolder->m_pAltSnap;
            return pHolder->m_SnapSize;
        }

        pHolder = pHolder->m_pNext;
    }

    return -1;
}

Bye
JJ

2

Re: Copy/paste issue

Seems like u have an old source
(https://github.com/teeworlds/teeworlds/ … t.cpp#L465)

You can find the latest source (0.7 trunk) under https://github.com/teeworlds/teeworlds (:

3

Re: Copy/paste issue

To contact the developers, the most straightforward thing would be to open a new issue on the teeworlds bug tracker.
However posting a bug here is totally fine aswell.

4 (edited by BotoX 2012-10-02 19:50:39)

Re: Copy/paste issue

if(ppData)
    *ppData = pHolder->m_pSnap;
if(ppAltData)
    *ppData = pHolder->m_pAltSnap;

I think this isn't wrong...

errm BeaR he has...