diff --git a/dat/ship.xml b/dat/ship.xml
index 7e251fb..c7979c5 100644
--- a/dat/ship.xml
+++ b/dat/ship.xml
@@ -24,8 +24,8 @@
2
32
- 20
- 25
+ 25
+ 20
Laser
@@ -55,7 +55,7 @@
2
25
- 25
+ 30
10
@@ -87,8 +87,8 @@
9
130
- 60
- 40
+ 90
+ 20
Laser
diff --git a/src/land.c b/src/land.c
index b9b3032..2270f09 100644
--- a/src/land.c
+++ b/src/land.c
@@ -187,6 +187,12 @@ static void outfits_buy(char* str) {
q = 1; // Q should be dependant on MOD keys. TODO
+ if((player_freeSpace() - outfit->mass) < 0) {
+ toolkit_alert("No enough free space (you need %d more slots).",
+ outfit->mass - player_freeSpace());
+ return;
+ }
+
pilot_addOutfit(player, outfit, q);
outfits_update(NULL);
}