From: Clyne Sullivan Date: Tue, 8 Sep 2015 22:58:32 +0000 (-0400) Subject: better X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=59d3f414f702b57f453e78ebe9c31b9ee5d03054;p=clyne%2Fgamedev.git better --- diff --git a/include/Quest.h b/include/Quest.h index 65f5b39..5a4144f 100644 --- a/include/Quest.h +++ b/include/Quest.h @@ -11,7 +11,6 @@ class Quest { public: char *title,*desc; unsigned int xp; - Quest(); Quest(const char *t,const char *d,unsigned int x); ~Quest(); }; diff --git a/src/Quest.cpp b/src/Quest.cpp index 52ab3a8..82c405d 100644 --- a/src/Quest.cpp +++ b/src/Quest.cpp @@ -1,11 +1,9 @@ #include -Quest QuestList[TOTAL_QUESTS]={ +const Quest QuestList[TOTAL_QUESTS]={ Quest("Test","A test quest",0) }; -Quest::Quest(){ -} Quest::Quest(const char *t,const char *d,unsigned int x){ size_t len; title=(char *)malloc((len=strlen(t)));