Skip to content

Commit

Permalink
Attempt to fix gcc compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Jan 16, 2020
1 parent f69a18d commit 8bdd15c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion duel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ duel::duel_message* duel::new_message(uint32_t message) {
messages.emplace_back(message);
return &(*messages.rbegin());
}
const card_data const* duel::read_card(uint32_t code, card_data* copyable) {
const card_data* const duel::read_card(uint32_t code, card_data* copyable) {
card_data* ret;
auto search = data_cache.find(code);
if(search != data_cache.end()) {
Expand Down
2 changes: 1 addition & 1 deletion duel.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class duel {
void set_response(byte* resp, size_t len);
int32 get_next_integer(int32 l, int32 h);
duel_message* new_message(uint32_t message);
const card_data const* read_card(uint32_t code, card_data* copyable = nullptr);
const card_data* const read_card(uint32_t code, card_data* copyable = nullptr);
void* read_card_payload;
void* read_script_payload;
void* handle_message_payload;
Expand Down

0 comments on commit 8bdd15c

Please sign in to comment.