Skip to content

Commit

Permalink
Fix loadSaveFeature2 for spectator-assigned features
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jul 27, 2023
1 parent a8b14af commit 8408aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6944,7 +6944,7 @@ bool loadSaveFeature2(const char *pFileName)
}
//restore values
pFeature->rot = ini.vector3i("rotation");
pFeature->player = ini.value("player", PLAYER_FEATURE).toInt();
pFeature->player = getPlayer(ini);

// common BASE_OBJECT info
loadSaveObject(ini, pFeature);
Expand Down

0 comments on commit 8408aa2

Please sign in to comment.