Fix vscript loading bug with vector in a table

This commit is contained in:
James Mitchell 2020-12-13 14:43:40 +11:00
parent eb014cce6c
commit 046391ef25

View File

@ -3182,6 +3182,8 @@ void SquirrelVM::ReadObject(CUtlBuffer* pBuffer, ReadStateMap& readState)
if (classType == VectorClassType) if (classType == VectorClassType)
{ {
sq_pushobject(vm_, vectorClass_); sq_pushobject(vm_, vectorClass_);
sq_getstackobj(vm_, -1, obj);
sq_addref(vm_, obj);
} }
else if (classType == NativeClassType) else if (classType == NativeClassType)
{ {