aboutsummaryrefslogtreecommitdiff
path: root/graphics/evolvotron
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/evolvotron')
-rw-r--r--graphics/evolvotron/files/patch-evolvotron_match::evolvotron_match.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/evolvotron/files/patch-evolvotron_match::evolvotron_match.cpp b/graphics/evolvotron/files/patch-evolvotron_match::evolvotron_match.cpp
new file mode 100644
index 000000000000..5bb0a07d75f5
--- /dev/null
+++ b/graphics/evolvotron/files/patch-evolvotron_match::evolvotron_match.cpp
@@ -0,0 +1,20 @@
+--- evolvotron_match/evolvotron_match.cpp.orig Mon Jul 12 02:05:44 2004
++++ evolvotron_match/evolvotron_match.cpp Thu Dec 9 20:07:52 2004
+@@ -187,13 +187,15 @@
+ {
+ do
+ {
+- new_imagefn=std::auto_ptr<const MutatableImage>(new MutatableImage(mutation_parameters,true,true,false));
++ std::auto_ptr<const MutatableImage> tmp(new MutatableImage(mutation_parameters,true,true,false));
++ new_imagefn=tmp;
+ }
+ while (new_imagefn->is_constant());
+ }
+ else
+ {
+- new_imagefn=std::auto_ptr<const MutatableImage>(best_imagefn->mutated(mutation_parameters));
++ std::auto_ptr<const MutatableImage> tmp(best_imagefn->mutated(mutation_parameters));
++ new_imagefn=tmp;
+ }
+
+