diff options
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp index f184a9f..c11c9fb 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -18,7 +18,7 @@ extern Menu optionsMenu; extern void mainLoop(void); void segFault(){ - ((vec2 *)currentWorld + 2934)[10].x = *((unsigned int *)¤tXML) * *((int *)NULL); + (*((int *)NULL))++; } @@ -27,7 +27,7 @@ typedef struct { unsigned int index; } NPCDialog; -std::vector<XMLElement *> dopt; +std::vector<XMLElement *> dopt; int commonAIFunc(NPC *speaker){ XMLDocument xml; @@ -67,7 +67,7 @@ int commonAIFunc(NPC *speaker){ if((oxml = exml->FirstChildElement("give"))){ while(oxml){ - player->inv->addItem((ITEM_ID)oxml->UnsignedAttribute("id"),oxml->UnsignedAttribute("count")); + player->inv->addItem(oxml->Attribute("id"),oxml->UnsignedAttribute("count")); oxml = oxml->NextSiblingElement(); } } @@ -78,7 +78,7 @@ int commonAIFunc(NPC *speaker){ if((oxml = exml->FirstChildElement("take"))){ while(oxml){ - player->inv->takeItem((ITEM_ID)oxml->UnsignedAttribute("id"),oxml->UnsignedAttribute("count")); + player->inv->takeItem(oxml->Attribute("id"),oxml->UnsignedAttribute("count")); oxml = oxml->NextSiblingElement(); } } @@ -129,7 +129,7 @@ int commonAIFunc(NPC *speaker){ /* * No options - simply print the text. */ - + ui::dialogBox(speaker->name,"",false,exml->GetText()); ui::waitForDialog(); } |