diff options
Diffstat (limited to 'games/enigma/patches/patch-ak')
-rw-r--r-- | games/enigma/patches/patch-ak | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/games/enigma/patches/patch-ak b/games/enigma/patches/patch-ak new file mode 100644 index 00000000000..d8ead796d8d --- /dev/null +++ b/games/enigma/patches/patch-ak @@ -0,0 +1,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; + } + }; |