summaryrefslogtreecommitdiffstats
path: root/src/AssetManager.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-22 00:38:08 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-22 00:46:59 +0200
commit14939a87010ab17425d73b53829aa22c17c96d79 (patch)
tree1b388f1121040f862d4f9aee7845b2705d09df4a /src/AssetManager.cpp
parentAdded game menus (diff)
downloadAltCraft-14939a87010ab17425d73b53829aa22c17c96d79.tar
AltCraft-14939a87010ab17425d73b53829aa22c17c96d79.tar.gz
AltCraft-14939a87010ab17425d73b53829aa22c17c96d79.tar.bz2
AltCraft-14939a87010ab17425d73b53829aa22c17c96d79.tar.lz
AltCraft-14939a87010ab17425d73b53829aa22c17c96d79.tar.xz
AltCraft-14939a87010ab17425d73b53829aa22c17c96d79.tar.zst
AltCraft-14939a87010ab17425d73b53829aa22c17c96d79.zip
Diffstat (limited to 'src/AssetManager.cpp')
-rw-r--r--src/AssetManager.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/AssetManager.cpp b/src/AssetManager.cpp
index 8528a1b..7bcfaae 100644
--- a/src/AssetManager.cpp
+++ b/src/AssetManager.cpp
@@ -433,8 +433,6 @@ void ParseAssetScript(AssetTreeNode &node) {
node.asset = std::make_unique<AssetScript>();
AssetScript *asset = dynamic_cast<AssetScript*>(node.asset.get());
asset->code = std::string((char*)node.data.data(), (char*)node.data.data() + node.data.size());
- node.data.clear();
- node.data.shrink_to_fit();
}
void ParseBlockModels() {