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:
Zed A. Shaw 2025-03-28 12:40:46 -04:00
parent 47c6bfd531
commit 72951f308f
17 changed files with 156 additions and 162 deletions

2
ai.cpp
View file

@ -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() {