mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-07-27 07:31:49 +03:00
Remove invalid assertions
This commit is contained in:
parent
ab03538347
commit
07ab21e2d5
@ -3367,7 +3367,8 @@ void SquirrelVM::WriteObject( const SQObjectPtr &obj, CUtlBuffer* pBuffer, Write
|
||||
#ifdef _DEBUG
|
||||
bool bAsserted = false;
|
||||
|
||||
if ( pThis->_noutervalues && pThis->_name._type == OT_STRING && pThis->_name._unVal.pString )
|
||||
if ( pThis->_noutervalues && pThis->_name._type == OT_STRING && pThis->_name._unVal.pString &&
|
||||
pThis->_outervalues[0]._type == OT_USERPOINTER )
|
||||
{
|
||||
Assert( pThis->_noutervalues == 1 );
|
||||
Assert( pThis->_outervalues[0]._type == OT_USERPOINTER );
|
||||
@ -3771,7 +3772,6 @@ void SquirrelVM::WriteObject( const SQObjectPtr &obj, CUtlBuffer* pBuffer, Write
|
||||
}
|
||||
case OT_USERDATA:
|
||||
case OT_USERPOINTER:
|
||||
Assert(0);
|
||||
break;
|
||||
default:
|
||||
AssertMsgAlways( 0, "SquirrelVM::WriteObject: unknown type" );
|
||||
@ -4458,10 +4458,7 @@ void SquirrelVM::ReadObject( SQObjectPtr &pObj, CUtlBuffer* pBuffer, ReadStateMa
|
||||
}
|
||||
case OT_USERDATA:
|
||||
case OT_USERPOINTER:
|
||||
{
|
||||
Assert(0);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
AssertMsgAlways( 0, "SquirrelVM::ReadObject: serialisation error" );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user