diff --git a/src/emufile.h b/src/emufile.h index 6b2e4a62..6e578db6 100644 --- a/src/emufile.h +++ b/src/emufile.h @@ -140,7 +140,7 @@ public: EMUFILE_MEMORY(void* buf, s32 size) : vec(new std::vector()), ownvec(true), pos(0), len(size) { vec->resize(size); if(size != 0) - memcpy(&vec[0],buf,size); + memcpy(&vec->front(),buf,size); } ~EMUFILE_MEMORY() {