summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_text.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index 4a2a10f5b..1d50c0108 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -149,6 +149,15 @@ struct GRFText {
return ::operator new(size + extra);
}
+public:
+ /* dummy operator delete to silence VC8:
+ * 'void *GRFText::operator new(size_t,size_t)' : no matching operator delete found;
+ * memory will not be freed if initialization throws an exception */
+ void operator delete(void *p, size_t extra)
+ {
+ return ::operator delete(p);
+ }
+
public:
GRFText *next;
byte langid;