1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-28 14:49:54 +00:00

Merge pull request #199 from jruderman/f7

Fix crash when talking to a Knight in the Temple of Cthulhu
This commit is contained in:
Zeno Rogue 2021-07-10 09:31:52 +02:00 committed by GitHub
commit cb71817cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -458,7 +458,7 @@ EX void knightFlavorMessage(cell *c2) {
else if(cryst)
s = crystal::get_table_boundary();
#endif
else if(!quotient)
else if(!quotient && rad)
s = expansion.get_descendants(rad).get_str(100);
if(s == "") { msgid++; goto retry; }
addMessage(XLAT("\"Our Table seats %1 Knights!\"", s));
@ -470,7 +470,7 @@ EX void knightFlavorMessage(cell *c2) {
else if(cryst)
s = crystal::get_table_volume();
#endif
else if(!quotient)
else if(!quotient && rad)
s = expansion.get_descendants(rad-1, expansion.diskid).get_str(100);
if(s == "") { msgid++; goto retry; }
addMessage(XLAT("\"There are %1 floor tiles inside our Table!\"", s));