DEADSOFTWARE

Rename inventory -> inv
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Drop.java
index e967f880314480a1fd9b9d73c77aedea4729622f..d92b846250571521dfd33f3f85cd826a35f3f312 100644 (file)
@@ -17,9 +17,9 @@ public class Drop implements Serializable {
     }
 
     public void pickUpDrop(Player pl) {
-        for (int i = 0; i < pl.inventory.length; i++) {
-            if (pl.inventory[i] == 0 || pl.inventory[i] == id) {
-                pl.inventory[i] = id;
+        for (int i = 0; i < pl.inv.length; i++) {
+            if (pl.inv[i] == 0 || pl.inv[i] == id) {
+                pl.inv[i] = id;
                 pickedUp = true;
                 break;
             }