1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-25 06:52:18 +00:00

silence warning better

This commit is contained in:
Zeno Rogue 2025-08-17 23:24:24 +02:00
parent 9c378418b0
commit fbeb2c5f0e

View File

@ -3623,7 +3623,7 @@ EX void save_customchar(charstyle& cs, const string& fname) {
EX void load_customchar(charstyle& cs, const string& fname) {
FILE *f = fopen(fname.c_str(), "rt");
if(!f) throw hstream_exception();
int vernum;
unsigned int vernum;
if(!fscanf(f, "%x", &vernum)) throw hstream_exception();
int lh;
if(!fscanf(f, "%d %d\n%08x %08x %08x %08x %08x %08x %08x %08x %08x\n",