diff --git a/MerchantRPGCSE2102/src/game/Merchant.java b/MerchantRPGCSE2102/src/game/Merchant.java index c77f5f1..5408762 100644 --- a/MerchantRPGCSE2102/src/game/Merchant.java +++ b/MerchantRPGCSE2102/src/game/Merchant.java @@ -35,7 +35,8 @@ public int decrementCash(int decrementAmount) { //checks if the amount attempting to be removed is //greater than the current amount - //if true, returns null and outputs error message + //if true, returns -1 and outputs error message + //the integer returned should never be negative if(decrementAmount > _currentCash) { System.out.println("Merchant has insufficent cash");