From bbfa2630ac24461690de23673c750a275d0d80f6 Mon Sep 17 00:00:00 2001 From: sireus Date: Sun, 30 Sep 2012 19:55:50 +0000 Subject: [PATCH] shut up clang error git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6896 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/modelcache.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/src/modelcache.h b/source/src/modelcache.h index 0906cd11..86e9bd7a 100644 --- a/source/src/modelcache.h +++ b/source/src/modelcache.h @@ -31,8 +31,8 @@ template struct modelcacheentry void unlink() { - prev->entry::next = next; - next->entry::prev = prev; + prev->modelcacheentry::next = next; + next->modelcacheentry::prev = prev; prev = next = (T *)this; } @@ -79,7 +79,7 @@ struct modelcache uchar *buf; size_t size; entry *curalloc; - + modelcache(size_t size = 0) : buf(size ? new uchar[size] : NULL), size(size), curalloc(NULL) {} ~modelcache() { DELETEA(buf); } @@ -140,7 +140,7 @@ struct modelcache curalloc = result; return (T *)curalloc; } - + curalloc = (entry *)buf; return NULL; }