Skip to content

Instantly share code, notes, and snippets.

@chancez
Created July 29, 2012 07:39
Show Gist options
  • Save chancez/3196535 to your computer and use it in GitHub Desktop.
Save chancez/3196535 to your computer and use it in GitHub Desktop.
const Potion& Potion::operator=(const Potion& aPotion)
{
if (this == &aPotion)
return *this;
else
{
type = aPotion.type;
return *this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment