summaryrefslogtreecommitdiff
path: root/games/enigma/patches/patch-ak
blob: d8ead796d8d12146057becb1a2ce46552c3fad8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -Nur enigma-0.81-orig/src/px/alist.hh enigma-0.81/src/px/alist.hh
--- 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;
         }
     };