Skip to content

Commit

Permalink
Fixed save game and pause screen bug
Browse files Browse the repository at this point in the history
Fixed bug where game would crash when trying to save due to wizard and mercenary no longer being objects in the save function. Fixed bug where game would crash when pressing P on pause screen.
  • Loading branch information
EthanWatkins1720 committed Apr 23, 2024
1 parent 299cb50 commit da9676b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions Turn-Based-RPG/rooms/rm_start/rm_start.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Turn-Based-RPG/scripts/Save/Save.gml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Save(){
// y: obj_mercenary.y,
// current_room: room,
// }
//array_push(party_member_objects, player, cool, mercenary);
array_push(party_member_objects, player);

party_info = [] // Stores player party information as an array of party member structs
array_push(party_info, ds_list_size(global.party));
Expand Down

0 comments on commit da9676b

Please sign in to comment.