diff --git a/desmume/src/emufile.h b/desmume/src/emufile.h index 99fa2e498..b8a1afa20 100644 --- a/desmume/src/emufile.h +++ b/desmume/src/emufile.h @@ -141,7 +141,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() {