summaryrefslogtreecommitdiff
path: root/games/enigma/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'games/enigma/patches/patch-ak')
-rw-r--r--games/enigma/patches/patch-ak33
1 files changed, 33 insertions, 0 deletions
diff --git a/games/enigma/patches/patch-ak b/games/enigma/patches/patch-ak
new file mode 100644
index 00000000000..b6c88a51743
--- /dev/null
+++ b/games/enigma/patches/patch-ak
@@ -0,0 +1,33 @@
+$NetBSD: patch-ak,v 1.2.2.2 2005/05/06 00:30:17 salo Exp $
+
+--- src/px/alist.hh 2003-01-12 20:32:43.000000000 +0100
++++ src/px/alist.hh 2004-11-11 00:04:26.855388248 +0100
+@@ -43,7 +43,7 @@
+ // Lookup of keys
+ //
+ iterator find (const key_type &key) {
+- iterator i=begin(), e=end();
++ iterator i=this->begin(), e=this->end();
+ for (; i!=e; ++i)
+ if (i->first == key)
+ break;
+@@ -51,7 +51,7 @@
+ }
+
+ const_iterator find (const key_type &key) const {
+- const_iterator i=begin(), e=end();
++ const_iterator i=this->begin(), e=this->end();
+ for (; i!=e; ++i)
+ if (i->first == key)
+ break;
+@@ -60,8 +60,8 @@
+
+ VAL &operator[] (const key_type &key) {
+ iterator i=find(key);
+- if (i==end())
+- i=insert(end(), make_pair(key, VAL()));
++ if (i==this->end())
++ i=insert(this->end(), make_pair(key, VAL()));
+ return i->second;
+ }
+ };