Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicSponge committed Nov 19, 2024
1 parent 911b983 commit 8d1ba44
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions include/silvergun/mgr/messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,31 +132,35 @@ class messages final : private manager<messages> {
const char ch = al_fgetc(&file);
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
//throw engine_exception("Bad message file format!", "Messages", 2);
break;
}
to += ch;
}
while (true) {
const char ch = al_fgetc(&file);
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
//throw engine_exception("Bad message file format!", "Messages", 2);
break;
}
from += ch;
}
while (true) {
const char ch = al_fgetc(&file);
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
//throw engine_exception("Bad message file format!", "Messages", 2);
break;
}
cmd += ch;
}
while (true) {
const char ch = al_fgetc(&file);
if (ch == '\0') break; // End loop if null terminated.
if (ch == EOF) {
throw engine_exception("Bad message file format!", "Messages", 2);
//throw engine_exception("Bad message file format!", "Messages", 2);
break;
}
args += ch;
}
Expand Down

0 comments on commit 8d1ba44

Please sign in to comment.