mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
fixed a crash in princess AI when pathq is empty
This commit is contained in:
parent
fd715d4057
commit
2a0ef4f30b
@ -149,6 +149,7 @@ struct princess_ai {
|
|||||||
|
|
||||||
void princess_ai::run() {
|
void princess_ai::run() {
|
||||||
int radius = toggle_radius(waOpenPlate);
|
int radius = toggle_radius(waOpenPlate);
|
||||||
|
if(pathq.empty()) return;
|
||||||
int d = pathq.back()->pathdist;
|
int d = pathq.back()->pathdist;
|
||||||
if(d == PINFD - 1) return;
|
if(d == PINFD - 1) return;
|
||||||
d++;
|
d++;
|
||||||
|
Loading…
Reference in New Issue
Block a user