Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[bin/crypt] fixed PlayerLooked.exits return value

  • Loading branch information...
commit e5c519899a8489d912d4882017a27af14c4f5e61 1 parent cb6dffc
Carl Mäsak authored July 16, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  bin/crypt
6  bin/crypt
@@ -476,7 +476,7 @@ class Adventure::Engine {
476 476
         unless %!seen_room{$to}++ {
477 477
             @events.push(Adventure::PlayerLooked.new(
478 478
                 :room($to),
479  
-                :exits(%!exits{$to}.keys),
  479
+                :exits((%!exits{$to} // ()).keys),
480 480
             ));
481 481
         }
482 482
         self!apply_and_return: @events;
@@ -488,7 +488,7 @@ class Adventure::Engine {
488 488
 
489 489
         my @events = Adventure::PlayerLooked.new(
490 490
             :room($!player_location),
491  
-            :exits(%!exits{$!player_location}.keys),
  491
+            :exits((%!exits{$!player_location} // ()).keys),
492 492
         );
493 493
         self!apply_and_return: @events;
494 494
     }
@@ -498,7 +498,7 @@ class Adventure::Engine {
498 498
         unless %!seen_room{$in}++ {
499 499
             @events.push(Adventure::PlayerLooked.new(
500 500
                 :room($in),
501  
-                :exits(%!exits{$in}.keys),
  501
+                :exits((%!exits{$in} // ()).keys),
502 502
             ));
503 503
         }
504 504
         self!apply_and_return: @events;

0 notes on commit e5c5198

Please sign in to comment.
Something went wrong with that request. Please try again.