Converted almost everything to use wstring so that it works better with SFML and the unicode/utf8 usage in the system.
This commit is contained in:
parent
47c6bfd531
commit
72951f308f
17 changed files with 156 additions and 162 deletions
2
ai.cpp
2
ai.cpp
|
@ -168,7 +168,7 @@ namespace ai {
|
|||
|
||||
bool EntityAI::wants_to(std::string name) {
|
||||
ai::check_valid_action(name, "EntityAI::wants_to");
|
||||
return plan.script[0].name == name;
|
||||
return plan.script.size() > 0 && plan.script[0].name == name;
|
||||
}
|
||||
|
||||
bool EntityAI::active() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue