diff options
author | aap <aap@papnet.eu> | 2020-08-20 12:53:17 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-08-20 12:53:17 +0200 |
commit | 764af8735c00a7f40a51f605fed3c73ce6413337 (patch) | |
tree | 3009c3e5da4a39e7e64446e654ee3689b8e91632 /src/rw/NodeName.cpp | |
parent | transmission done (diff) | |
download | re3-764af8735c00a7f40a51f605fed3c73ce6413337.tar re3-764af8735c00a7f40a51f605fed3c73ce6413337.tar.gz re3-764af8735c00a7f40a51f605fed3c73ce6413337.tar.bz2 re3-764af8735c00a7f40a51f605fed3c73ce6413337.tar.lz re3-764af8735c00a7f40a51f605fed3c73ce6413337.tar.xz re3-764af8735c00a7f40a51f605fed3c73ce6413337.tar.zst re3-764af8735c00a7f40a51f605fed3c73ce6413337.zip |
Diffstat (limited to 'src/rw/NodeName.cpp')
-rw-r--r-- | src/rw/NodeName.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rw/NodeName.cpp b/src/rw/NodeName.cpp index ad4acffb..a7185e4f 100644 --- a/src/rw/NodeName.cpp +++ b/src/rw/NodeName.cpp @@ -50,8 +50,8 @@ NodeNameStreamWrite(RwStream *stream, RwInt32 binaryLength, const void *object, RwInt32 NodeNameStreamGetSize(const void *object, RwInt32 offsetInObject, RwInt32 sizeInObject) { - // game checks for null pointer on node name extension but that really happen - return (RwInt32)rwstrlen(NODENAMEEXT(object)); + char *name = NODENAMEEXT(object); // can't be nil + return name ? (RwInt32)rwstrlen(name) : 0; } bool |