summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-06-22 20:38:12 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-06-22 20:38:12 +0200
commit49523b1c03ac4d290634c91f303b92d784ce8a78 (patch)
tree954176e45823c4a8d7983dab4fddf70b9dfccced
parenttabify (diff)
downloadre3-49523b1c03ac4d290634c91f303b92d784ce8a78.tar
re3-49523b1c03ac4d290634c91f303b92d784ce8a78.tar.gz
re3-49523b1c03ac4d290634c91f303b92d784ce8a78.tar.bz2
re3-49523b1c03ac4d290634c91f303b92d784ce8a78.tar.lz
re3-49523b1c03ac4d290634c91f303b92d784ce8a78.tar.xz
re3-49523b1c03ac4d290634c91f303b92d784ce8a78.tar.zst
re3-49523b1c03ac4d290634c91f303b92d784ce8a78.zip
-rw-r--r--src/templates.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/templates.h b/src/templates.h
index 0e9eba99..d1ef99f0 100644
--- a/src/templates.h
+++ b/src/templates.h
@@ -116,8 +116,8 @@ public:
debug("CopyBack:%d (/%d)", GetNoOfUsedSpaces(), m_size); /* Assumed inlining */
}
void Store(uint8 **flags, U** entries){
- *flags = (Flags*)malloc(sizeof(Flags)*size);
- *entries = (U*)malloc(sizeof(U)*size);
+ *flags = (Flags*)malloc(sizeof(Flags)*m_size);
+ *entries = (U*)malloc(sizeof(U)*m_size);
memcpy(*flags, m_flags, sizeof(Flags)*m_size);
memcpy(*entries, m_entries, sizeof(U)*m_size);
debug("Stored:%d (/%d)", GetNoOfUsedSpaces(), m_size); /* Assumed inlining */