Skip to content

Commit

Permalink
NWN: Construct the GFF3File in-place in CharGenChoices::applyChoices()
Browse files Browse the repository at this point in the history
Instead of using the assignment operator (which won't really work!).
  • Loading branch information
DrMcCoy committed Oct 19, 2016
1 parent 8f80f0e commit 43ea825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/nwn/gui/chargen/chargenchoices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void CharGenChoices::applyChoices() {
// Set appearance.
// TODO: Apply choices from user and not default values.
_creature->setAppearance(_creature->getRace());
Aurora::GFF3File gff = Aurora::GFF3File("NW_CLOTH001", Aurora::kFileTypeUTI);
Aurora::GFF3File gff("NW_CLOTH001", Aurora::kFileTypeUTI);
Item *armor = new Item(gff.getTopLevel());
_creature->addEquippedItem(armor);

Expand Down

0 comments on commit 43ea825

Please sign in to comment.