diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-11-13 08:28:43 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-11-13 08:28:43 -0500 |
commit | a32339dc700759ab44a360953c9c24d009b11ecc (patch) | |
tree | bf351f2b495403f523a82824a9bc8317b5da81ec /src/entities.cpp | |
parent | 613ab3be6ee76595c04b89992e62c41b52bc1a2f (diff) | |
parent | 1177a2ec843533b76fa9bd8573686f684103075c (diff) |
Added object class, and added quest listing
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index a0005c3..7b1c3de 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -289,7 +289,7 @@ void NPC::interact(){ //have the npc's interact back to the player func=aiFunc.front(); canMove=false; if(!func(this)){ - aiFunc.erase(aiFunc.begin()); + if(aiFunc.size())aiFunc.erase(aiFunc.begin()); } canMove=true; } |