I get the following error:
error C2440: \'type cast\' : cannot convert from \'std::_Vector_iterator<_Ty,_Alloc>\' to \'DWORD\' with [
My intention was to get rid of the error.
This worked perfectly: *(DWORD*)(offset+0x571) = (DWORD)factions.front();
*(DWORD*)(offset+0x571) = (DWORD)factions.front();