changeset 275:c1333052a4ed

fixed a typo
author "Rex Tsai <chihchun@kalug.linux.org.tw>"
date Tue, 02 Dec 2008 02:08:50 +0800
parents 2590bcd517a5
children 8355ec8514f9
files agent.pl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/agent.pl	Mon Dec 01 20:54:23 2008 +0800
+++ b/agent.pl	Tue Dec 02 02:08:50 2008 +0800
@@ -70,7 +70,7 @@
 sub is_safehouse_enough {
     my ($self, $city) = @_;
     return 0 if(!defined($city->{buildings}->{safehouse}));
-    return 1 if($$city->{buildings}->{townHall} >= 20);
+    return 1 if($city->{buildings}->{townHall} >= 20);
 
     # build the higgest safehouse.
     # maybe we should have more then 4 towns, then we consider that we should upgrade safehouse at level 20.