aboutsummaryrefslogtreecommitdiff
path: root/src/moveuse.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-08-15 15:48:19 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-08-15 15:50:32 -0300
commit8082c228c5d618e6f865f76b4d0518c2fde573ec (patch)
tree59e61abe98c3060fb1eb3677b9dbbb744c92174a /src/moveuse.cc
parente4b8bf807b76f6f446d9617d9a3957dc77dd6e90 (diff)
downloadgame-8082c228c5d618e6f865f76b4d0518c2fde573ec.tar.gz
game-8082c228c5d618e6f865f76b4d0518c2fde573ec.zip
wrapping up for a public release
Diffstat (limited to 'src/moveuse.cc')
-rw-r--r--src/moveuse.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/moveuse.cc b/src/moveuse.cc
index e4d76db..396207d 100644
--- a/src/moveuse.cc
+++ b/src/moveuse.cc
@@ -2977,7 +2977,9 @@ void LoadDataBase(void){
continue;
}
- int EventType;
+ // NOTE(fusion): `TReadScriptFile::error` will always throw but the
+ // compiler might not be able to detect that and issue a warning.
+ int EventType = 0;
if(strcmp(Identifier, "use") == 0){
EventType = MOVEUSE_EVENT_USE;
}else if(strcmp(Identifier, "multiuse") == 0){