mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-11 20:11:33 +03:00
Fix gcc build errors & warnings
This commit is contained in:
@@ -241,7 +241,7 @@ public:
|
||||
HSQOBJECT regexpClass_;
|
||||
};
|
||||
|
||||
SQUserPointer TYPETAG_VECTOR = "VectorTypeTag";
|
||||
static char TYPETAG_VECTOR[] = "VectorTypeTag";
|
||||
|
||||
namespace SQVector
|
||||
{
|
||||
@@ -1089,7 +1089,7 @@ void PushVariant(HSQUIRRELVM vm, const ScriptVariant_t& value)
|
||||
sq_createinstance(vm, -1);
|
||||
SQUserPointer p;
|
||||
sq_getinstanceup(vm, -1, &p, 0);
|
||||
new(p) Vector(value);
|
||||
new(p) Vector(static_cast<const Vector&>(value));
|
||||
sq_remove(vm, -2);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user