To add onto Nuno's post, C++ provides const_cast specifically to cast off constness.
On Thu, May 29, 2008 at 7:04 PM, Tony omega Sergi <[EMAIL PROTECTED]> wrote: > also, netvar->GetForModify() = somevalue; this is all off the top of > my head tho and may be wrong heh > > On 5/26/08, Tom Edwards <[EMAIL PROTECTED]> wrote: > > I've been trying to push an EmitSound_t over the wire, but keep running > > into compiler errors about assigning to const that don't appear when I'm > > not using a CNetworkVar. > > > > Is what I'm trying possible, or am I just going to have to handle all of > > the values separately? > > > > Code: > >> CNetworkVar( EmitSound_t,m_Sound ); > >> m_Sound->m_nSpeakerEntity = gEntList.FindEntityByName( NULL, > >> m_sSourceEntTargetName )->entindex(); > > > > Error: > >> error C3892: 'CNetworkVarBase<Type,Changer>::operator ->' : you cannot > >> assign to a variable that is const > > > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > -- > Sent from Gmail for mobile | mobile.google.com > > -Tony > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

