]> git.sur5r.net Git - c128-kasse/blobdiff - config.c
10 chars for item names are enough
[c128-kasse] / config.c
index fd8b2e3b18eb500a5f797215e6477b9279ba5405..1d23f7698b4426cce9104433fcaed2cd5eade8e6 100644 (file)
--- a/config.c
+++ b/config.c
@@ -40,6 +40,9 @@ void load_config() {
 
 #else
 
+void load_config() {
+}
+
 void load_items() {
        uc c;
        num_items=2;
@@ -49,7 +52,8 @@ void load_items() {
        strcpy(status[1].item_name, "mate");
        status[1].price = 150;
        status[1].times_sold = 0;
-
+       for (c = 2; c < MAX_ITEMS; ++c)
+               status[c].item_name[0] = 0;
 }
 
 void load_state() {
@@ -64,4 +68,4 @@ void save_state() {
 }
 
 void save_credits() {}
-#endif
\ No newline at end of file
+#endif