projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replaced Ref and RefCounter with std::shared_ptr<>
[supertux.git]
/
src
/
object
/
pneumatic_platform.cpp
diff --git
a/src/object/pneumatic_platform.cpp
b/src/object/pneumatic_platform.cpp
index
b295de8
..
c76f8b1
100644
(file)
--- a/
src/object/pneumatic_platform.cpp
+++ b/
src/object/pneumatic_platform.cpp
@@
-86,7
+86,7
@@
void
PneumaticPlatform::update(float elapsed_time)
{
if (!slave) {
- Sector::current()->add_object(
new PneumaticPlatform
(this));
+ Sector::current()->add_object(
std::make_shared<PneumaticPlatform>
(this));
return;
}
if (!master) {