MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / RemoveAt

Method RemoveAt

external/as_add_on/scriptarray/scriptarray.cpp:869–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869void CScriptArray::RemoveAt(asUINT index)
870{
871 if( index >= buffer->numElements )
872 {
873 // If this is called from a script we raise a script exception
874 asIScriptContext *ctx = asGetActiveContext();
875 if( ctx )
876 ctx->SetException("Index out of bounds");
877 return;
878 }
879
880 // Remove the element
881 Resize(-1, index);
882}
883
884void CScriptArray::RemoveLast()
885{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected