Skip to content

Commit

Permalink
Fixed wrong comparison in hold_size check.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemming552 authored and mjharwood committed Jan 18, 2015
1 parent 242ca44 commit 5aad175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/sift.pl
Expand Up @@ -292,7 +292,8 @@ sub send_ship {
for my $glyph (@{$sent_glyphs}) {
$gcargo_req += $glyph->{quantity} * $gcargo_each;
}
if ( $ship->{hold_size} < $pcargo_req + $gcargo_each ) {
# print "$pcargo_req plan space and $gcargo_req glyph space needed with $ship->{hold_size} hold size.\n";
if ( $ship->{hold_size} < $pcargo_req + $gcargo_req ) {
( $sent_plans, $left_plans, $sent_glyphs, $left_glyphs) =
pack_cargo( $sent_plans, $pcargo_each, $pcargo_req,
$sent_glyphs, $gcargo_each, $gcargo_req,
Expand Down

0 comments on commit 5aad175

Please sign in to comment.